August 10, 20196 yr 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
August 10, 20196 yr 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.
August 10, 20196 yr 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
August 10, 20196 yr 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.