doron Posted November 9, 2018 Share Posted November 9, 2018 Hi all, I would like to have a script run right after the update process runs - basically, once unRAIDserver.plg completes (and before any reboot). Is there a hook / elegant method for that? Thanks! Link to comment
trurl Posted November 9, 2018 Share Posted November 9, 2018 Since you have to be involved to run the update, and then you have to be involved to reboot, why not just manually run your script between the update and the reboot? But I have to wonder what this script is supposed to do. After the update is run, you are still running the previous version of Unraid (which is the version that is still in RAM). Only on reboot is the new version loaded into RAM from the flash drive. Link to comment
doron Posted November 9, 2018 Author Share Posted November 9, 2018 2 minutes ago, trurl said: Since you have to be involved to run the update, and then you have to be involved to reboot, why not just manually run your script between the update and the reboot? Yes, this is what I'm doing now. Just need to remember doing that every time, so wanted to automate. 4 minutes ago, trurl said: But I have to wonder what this script is supposed to do. After the update is run, you are still running the previous version of Unraid (which is the version that is still in RAM). Only on reboot is the new version loaded into RAM from the flash drive. Ah. That's copying the bz* files from /boot (the flash drive) where they are put by the plg, into the actual boot drive (I'm running unRAID in a VM and hence do not really boot from the USB flash). Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.