From 57b4266fb1c84ffd563837597f3bb1fe14b58bf3 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 10 Jun 2021 10:39:58 +0200 Subject: [PATCH] =?UTF-8?q?fix=20restore=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/restore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/restore b/scripts/restore index 8f74e90..0596cf8 100755 --- a/scripts/restore +++ b/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