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