From d60a7d59378ba7956427750e9c3a84bea8f04369 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 22 Apr 2025 17:40:21 +0200 Subject: [PATCH] update_nextcloud.sh: restart notify_push service if present.. --- update_nextcloud.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/update_nextcloud.sh b/update_nextcloud.sh index 0ba02dd..523b28a 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -1677,6 +1677,18 @@ else fi fi +echononl " Restart notify_push service .." + +if $(systemctl list-units --full -all | grep -Fq "notify_push") ; then + systemctl restart notify_push > $log_file 2>&1 + if [[ $? -eq 0 ]]; then + echo_ok + else + echo_failed + error "\n\n$(cat $log_file)" + fi +fi + blank_line clean_up 0