Jump to content
Sign in to follow this  
whiteatom

config/go file not being read

6 posts in this topic Last Reply

Recommended Posts

Hi all,

I'm on 6.7.0 now and all seems to be well except the config/go file isn't being read - or the commands aren't being run. I have my go file set to copy my SSH keys in place and to copy a backup script to /etc/cron.daily, however, neither of these are being done on reboot. 

 

Is the go file still used for 6.7? is there a different file I should be using?

 

Thanks as always!

 

whiteatom

Share this post


Link to post

If the webUI winds up loading, then the go file is being executed.  Maybe you should post your go file

Share this post


Link to post

Roger - file below. As long as the go file is still relevant, I can continue troubleshooting, but any input would be appreciated. 

 

#!/bin/bash
# Start the Management Utility

cp -ar /boot/custom/ssh_keys/.ssh /root/
chmod -R 700 /root/.ssh
chmod 600 /root/.ssh/id_rsa

cp /boot/custom/backup.sh /etc/cron.daily/

/usr/local/sbin/emhttp &

 

Share this post


Link to post
30 minutes ago, whiteatom said:

Roger - file below. As long as the go file is still relevant, I can continue troubleshooting, but any input would be appreciated. 

 


#!/bin/bash
# Start the Management Utility

cp -ar /boot/custom/ssh_keys/.ssh /root/
chmod -R 700 /root/.ssh
chmod 600 /root/.ssh/id_rsa

cp /boot/custom/backup.sh /etc/cron.daily/

/usr/local/sbin/emhttp &

 

That looks fine - although I would move the comment to just before the line that actually starts emhttp to avoid confusion.

 

You could add some calls to ‘logger’ to add lines to syslog to prove that the file executes and exactly when.

Share this post


Link to post

Or add 

2>>/boot/errors.txt

to each line to see if they are erroring out

Share this post


Link to post

Logging errors sorted it out for me. I renamed my "custom" folder, so this was a PEBKAC. Thank-you all!

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.

Sign in to follow this