Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

config/go file not being read

Featured Replies

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

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

  • 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 &

 

  • 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.

Or add 

2>>/boot/errors.txt

to each line to see if they are erroring out

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.