ds679 Posted August 10, 2019 Share Posted August 10, 2019 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 Quote Link to comment
BRiT Posted August 10, 2019 Share Posted August 10, 2019 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. Quote Link to comment
ds679 Posted August 10, 2019 Author Share Posted August 10, 2019 Great idea....thanks! Quote Link to comment
ds679 Posted August 10, 2019 Author Share Posted August 10, 2019 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 Quote Link to comment
ds679 Posted August 10, 2019 Author Share Posted August 10, 2019 [SOLVED} edit /root/.bash_profile adding the line: export PATH="$PATH:/mnt/user/scripts" 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.