June 17, 20197 yr 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
June 17, 20197 yr If the webUI winds up loading, then the go file is being executed. Maybe you should post your go file
June 17, 20197 yr Author 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 &
June 17, 20197 yr Community Expert 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.
June 18, 20197 yr Author Logging errors sorted it out for me. I renamed my "custom" folder, so this was a PEBKAC. Thank-you all!
Archived
This topic is now archived and is closed to further replies.