Jump to content
RockDawg

default-black.css missing

5 posts in this topic Last Reply

Recommended Posts

A few weeks ago a read about people customizing the UI a bit and did a bit myself in changing the font colors.  It looked great and was working fine but today I rebooted my server and the UI is all messed up.  No background or buttons and the text is all misaligned and stuff.  If I select another theme everything is OK.  So I must have butchered something and I wnet to see what was up and I can't find default-black.css under /usr/local/emhttp/plugins/dynamix/styles.  default-azure.css, default-gray.css and default-white.css are there but not black.

 

Why would it disappear and how do I get/put it back?

Share this post


Link to post

Are you running a script via user scripts or via the go file that

11 minutes ago, RockDawg said:

A few weeks ago a read about people customizing the UI a bit and did a bit myself in changing the font colors.

is applying your changes?

Share this post


Link to post

I'm glad you mentioned this as I totally forgot the need to run a script to make the change persistent.  Yes I am using user scripts.  Here is the script it runs at startup of aray:

 

#!/bin/bash
rm -r /usr/local/emhttp/plugins/dynamix/styles/default-black.css
cp /boot/config/custom-skin-file/default-black.css usr/local/emhttp/plugins/dynamix/styles/

 

So that explains why the file is missing.  Because the script removed it.  But it can't copy the modified file.  The log shows:

 

Script Starting Tue, 13 Aug 2019 12:52:56 -0400

Full logs for this script are available at /tmp/user.scripts/tmpScripts/custom theme/log.txt

cp: cannot create regular file 'usr/local/emhttp/plugins/dynamix/styles/': No such file or directory
Script Finished Tue, 13 Aug 2019 12:52:56 -0400

 

If I manually hit the Run Script button it works.

Share this post


Link to post

There is a missing / character at the start of the second parameter to the cp command.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.