diff --git a/scripts/install b/scripts/install index b0c66d6..9a421aa 100755 --- a/scripts/install +++ b/scripts/install @@ -367,6 +367,17 @@ ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# CHECK IF NOTIFY_PUSH WORKS +#================================================= + +if [ $use_notify_push -eq 1 ] +then + if ! ynh_exec_as "$app" nextcloud php7.3 $final_path/occ notify_push:self-test; then + ynh_print_warn --message="High Performance Backend is not working correctly, try to repair it or contact YNH support." + fi +fi + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index b3f2451..1b160ba 100755 --- a/scripts/restore +++ b/scripts/restore @@ -194,6 +194,17 @@ ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# CHECK IF NOTIFY_PUSH WORKS +#================================================= + +if [ $use_notify_push -eq 1 ] +then + if ! ynh_exec_as "$app" nextcloud php7.3 $final_path/occ notify_push:self-test; then + ynh_print_warn --message="High Performance Backend is not working correctly, try to repair it or contact YNH support." + fi +fi + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index e424348..d0c8226 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -498,6 +498,17 @@ ynh_script_progression --message="Reloading NGINX web server and PHP-FPM..." ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name="php${phpversion}-fpm" --action=reload +#================================================= +# CHECK IF NOTIFY_PUSH WORKS +#================================================= + +if [ $use_notify_push -eq 1 ] +then + if ! ynh_exec_as "$app" nextcloud php7.3 $final_path/occ notify_push:self-test; then + ynh_print_warn --message="High Performance Backend is not working correctly, try to repair it or contact YNH support." + fi +fi + #================================================= # END OF SCRIPT #=================================================