diff --git a/setup/zpush.sh b/setup/zpush.sh index 5e0ea2c4..397ee4a9 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -110,4 +110,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