Feat: Add stoppost notify to backup sevices
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/etc/backups/run.sh
|
||||
ExecStopPost=-bash -c '[[ $EXIT_STATUS == 0 ]] && notify-send "Backup finished: Drive can be removed."'
|
||||
ExecStopPost=-bash -c '[[ $EXIT_STATUS != 0 ]] && notify-send "Backup failed." -u critical'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user