From 05ab4b37e1a7c5d91ad1fe9bead48c214614a1a6 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/restore b/scripts/restore index 1e6e7b2..ff4252e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -104,6 +104,11 @@ chmod 640 "$install_dir/config/config.php" chmod 755 /home/yunohost.app chmod 750 $install_dir +if [ $enable_notify_push -eq 1 ] +then + chmod 740 $final_path/apps/notify_push/bin/x86_64/notify_push +fi + # Iterate over users to extend their home folder permissions - for the external # storage plugin usage - and create relevant Nextcloud directories for u in $(ynh_user_list); do @@ -151,6 +156,11 @@ ynh_systemd_action --service_name=nginx --action=reload # CHECK IF NOTIFY_PUSH WORKS #================================================= +exec_occ() { + (cd "$install_dir" && ynh_exec_as "$app" \ + php${phpversion} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@") +} + if [ $enable_notify_push -eq 1 ] then ynh_systemd_action --service_name="${app}-notify-push" --action=restart