From d9c9c73e7956ab1ab40fb8fbd53853c98f606788 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Fri, 9 Jul 2021 19:04:15 +0200 Subject: [PATCH] add apc.enable_cli=1 to occ --- scripts/actions/add_multimedia_directories | 2 +- scripts/actions/disable_maintenance | 2 +- scripts/change_url | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/actions/add_multimedia_directories b/scripts/actions/add_multimedia_directories index 4dc7881..8b5a9af 100755 --- a/scripts/actions/add_multimedia_directories +++ b/scripts/actions/add_multimedia_directories @@ -28,7 +28,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) # Define a function to execute commands with `occ` exec_occ() { (cd "$final_path" && exec_as "$app" \ - php$YNH_PHP_VERSION occ --no-interaction --no-ansi "$@") + php$YNH_PHP_VERSION --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@") } # Define a function to add an external storage diff --git a/scripts/actions/disable_maintenance b/scripts/actions/disable_maintenance index 0ea0edb..60e8738 100755 --- a/scripts/actions/disable_maintenance +++ b/scripts/actions/disable_maintenance @@ -42,7 +42,7 @@ ynh_script_progression --message="Disabling maintenance mode..." --weight=3 ( cd "$final_path" && exec_as "$app" \ - php$YNH_PHP_VERSION occ --no-interaction --no-ansi maintenance:mode --off + php$YNH_PHP_VERSION --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:mode --off ) #================================================= diff --git a/scripts/change_url b/scripts/change_url index 5c6deb8..f4f54a2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -102,7 +102,7 @@ ynh_script_progression --message="Applying Nextcloud specific modifications..." # Define a function to execute commands with `occ` exec_occ() { (cd "$final_path" && ynh_exec_as "$app" \ - php${phpversion} occ --no-interaction --no-ansi "$@") + php${phpversion} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@") } if [ $change_domain -eq 1 ] diff --git a/scripts/install b/scripts/install index 51d8b0f..1ca2fc6 100755 --- a/scripts/install +++ b/scripts/install @@ -143,7 +143,7 @@ ynh_script_progression --message="Installing Nextcloud..." --weight=30 # Define a function to execute commands with `occ` exec_occ() { (cd "$final_path" && ynh_exec_as "$app" \ - php${phpversion} occ --no-interaction --no-ansi "$@") + php${phpversion} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@") } # Set write access for the following commands diff --git a/scripts/upgrade b/scripts/upgrade index 205cc51..175c4ee 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -194,7 +194,7 @@ exec_occ() { NEXTCLOUD_PHP_VERSION="7.0" fi (cd "$final_path" && ynh_exec_as "$app" \ - php$NEXTCLOUD_PHP_VERSION occ --no-interaction --no-ansi "$@") + php$NEXTCLOUD_PHP_VERSION --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@") } # Define a function to add an external storage