Browse Source

self-test notify_push

add-notify_push-option
Kay0u 5 years ago
parent
commit
f78f064b33
No known key found for this signature in database GPG Key ID: AAFEEB16CFA2AE2D
  1. 11
      scripts/install
  2. 11
      scripts/restore
  3. 11
      scripts/upgrade

11
scripts/install

@ -367,6 +367,17 @@ ynh_script_progression --message="Reloading NGINX web server..."
ynh_systemd_action --service_name=nginx --action=reload 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 # END OF SCRIPT
#================================================= #=================================================

11
scripts/restore

@ -194,6 +194,17 @@ ynh_script_progression --message="Reloading NGINX web server..."
ynh_systemd_action --service_name=nginx --action=reload 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 # END OF SCRIPT
#================================================= #=================================================

11
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=nginx --action=reload
ynh_systemd_action --service_name="php${phpversion}-fpm" --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 # END OF SCRIPT
#================================================= #=================================================

Loading…
Cancel
Save