config/go file not being read


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

Link to comment

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 &

 

Link to comment
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.

Link to comment

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.