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.

Running a script right after Update OS

Featured Replies

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!

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.

 

 

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

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.