diff --git a/scripts/install b/scripts/install index 25d79af..5952e50 100755 --- a/scripts/install +++ b/scripts/install @@ -298,6 +298,8 @@ ynh_add_fail2ban_config --logpath="/var/log/$app/nextcloud.log" --failregex="^.* if [ $enable_notify_push -eq 1 ] then + ynh_exec_as "$app" php${phpversion} --define apc.enable_cli=1 $install_dir/cron.php + ynh_systemd_action --service_name="${app}-notify-push-watcher" --action=restart ynh_systemd_action --service_name="${app}-notify-push" --action=restart --line_match="Push daemon for Nextcloud clients." --log_path="systemd" diff --git a/scripts/upgrade b/scripts/upgrade index 6614619..0ec378a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -442,6 +442,8 @@ ynh_add_fail2ban_config --logpath="/var/log/$app/nextcloud.log" --failregex="^.* if [ $enable_notify_push -eq 1 ] then + ynh_exec_as "$app" php${phpversion} --define apc.enable_cli=1 $install_dir/cron.php + ynh_systemd_action --service_name="${app}-notify-push-watcher" --action=restart ynh_systemd_action --service_name="${app}-notify-push" --action=restart --line_match="Push daemon for Nextcloud clients." --log_path="systemd" --action=restart