whiteatom Posted June 17, 2019 Share Posted June 17, 2019 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 Quote Link to comment
Squid Posted June 17, 2019 Share Posted June 17, 2019 If the webUI winds up loading, then the go file is being executed. Maybe you should post your go file Quote Link to comment
whiteatom Posted June 17, 2019 Author Share Posted June 17, 2019 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 & Quote Link to comment
itimpi Posted June 17, 2019 Share Posted June 17, 2019 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. Quote Link to comment
Squid Posted June 17, 2019 Share Posted June 17, 2019 Or add 2>>/boot/errors.txt to each line to see if they are erroring out Quote Link to comment
whiteatom Posted June 18, 2019 Author Share Posted June 18, 2019 Logging errors sorted it out for me. I renamed my "custom" folder, so this was a PEBKAC. Thank-you all! Quote Link to comment
Recommended Posts
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.