Verified Commit 2166034b authored by Karel Koci's avatar Karel Koci 🤘
Browse files

pkgupdate: do not create reboot notification for non-root system

This skips content of create-notification reboot_required hook in case
if path to system is not /. Only currently running system should raise
reboot_required request.
parent bfd4acf3
Pipeline #51719 passed with stage
in 6 minutes and 33 seconds
#!/bin/sh
create_notification -s restart "Systém byl aktualizován, ale některé změny se projeví až po restartu. Prosím restartujte své zařízení." "The system was updated, but some changes will take effect only after reboot. Please reboot the device." || echo "Create notification failed"
# Do not try to create notification for run on non-root system
[ "$ROOT_DIR" = "/" ] || exit 0
create_notification -s restart \
"Systém byl aktualizován, ale některé změny se projeví až po restartu. Prosím restartujte své zařízení." \
"The system was updated, but some changes will take effect only after reboot. Please reboot the device." \
|| echo "Create notification failed"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment