Browse Source

fix restore²

add-notify_push-option
Kay0u 5 years ago
parent
commit
57b4266fb1
No known key found for this signature in database GPG Key ID: AAFEEB16CFA2AE2D
  1. 6
      scripts/restore

6
scripts/restore

@ -200,6 +200,12 @@ ynh_systemd_action --service_name=nginx --action=reload
# CHECK IF NOTIFY_PUSH WORKS
#=================================================
# Define a function to execute commands with `occ`
exec_occ() {
(cd "$final_path" && ynh_exec_as "$app" \
php${phpversion} occ --no-interaction --no-ansi "$@")
}
if [ $use_notify_push -eq 1 ]
then
ynh_systemd_action --service_name="${app}-notify-push" --action=restart

Loading…
Cancel
Save