Browse Source

add apc.enable_cli=1 to occ

21.0.3
Kay0u 5 years ago
parent
commit
d9c9c73e79
No known key found for this signature in database GPG Key ID: AAFEEB16CFA2AE2D
  1. 2
      scripts/actions/add_multimedia_directories
  2. 2
      scripts/actions/disable_maintenance
  3. 2
      scripts/change_url
  4. 2
      scripts/install
  5. 2
      scripts/upgrade

2
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

2
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
)
#=================================================

2
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 ]

2
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

2
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

Loading…
Cancel
Save