mrworf / plexupdate

Plex Update script to simplify the life of Linux Plex Media Server users.
GNU General Public License v2.0
1.77k stars 146 forks source link

How can i customize notification? #280

Closed lorenzoromio closed 3 years ago

lorenzoromio commented 3 years ago

i want run a script every time the server is updating, automatically

demonbane commented 3 years ago

Anytime an upgrade is performed, plexupdate will return exit code 10, so you can just use a wrapper script to run it and do something like

if [ $? -eq 10 ]; then
  /path/to/my_local_script
fi