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.

Creating Permanent Scripts in Terminal after reboots

Featured Replies

Everyone - I've tried to RTFM and couldn't find the answer/direction (if you find it - please just provide a link, thx).

I've created a few scripts to help automate file moving on my UnRaid servers.  I'm a CLI kinda guy and used the 'Terminal' to do so...but find that my user directory keeps getting erased between reboots.  Can someone help me to find 'permanence' for scripts/files in the user (i.e. Root) directory?

Thanks in advance - dave

Everything except files on your array drives or cache drive or flash drive is reset upon reboot, since unraid runs from ram. The flash drive file system does not allow for proper file permissions though.

 

Have you looked at the User Scripts plugin? That may only be for parameterless scripts, but it's worth a look.

 

Another easy way is for you to store the scripts on an array drive and add that directory to PATH, such as /mnt/user/scripts. This way is easier than copying from your boot flash drive and having to chmod them to correct permissions.

  • Author

Great idea....thanks!

  • Author

Can you help me to correctly modify/set-this-up?  I've looked through my 'go' file and don't see that the path variable is set there.  I'm nervous about setting one as it might overwrite where it setup (somewhere else)?

 

Thanks again - dave

  • Author

[SOLVED}

edit /root/.bash_profile

 

adding the line:

 

export PATH="$PATH:/mnt/user/scripts"

 

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.