From b6a47a4110258c81841e83a76c6d9250155ead6f Mon Sep 17 00:00:00 2001 From: matidau <65836048+matidau@users.noreply.github.com> Date: Sun, 18 Aug 2024 19:24:01 +1000 Subject: [PATCH] Fixstates only after Z-Push upgrade --- setup/zpush.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/zpush.sh b/setup/zpush.sh index 3b14c047..a5f28683 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -112,4 +112,6 @@ restart_service php"$PHP_VER"-fpm # Fix states after upgrade -hide_output php"$PHP_VER" /usr/local/lib/z-push/z-push-admin.php -a fixstates +if [ $needs_update == 1 ]; then + hide_output php"$PHP_VER" /usr/local/lib/z-push/z-push-admin.php -a fixstates +fi