mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
add apc.enable_cli=1 to occ
This commit is contained in:
parent
010ddbd369
commit
d9c9c73e79
5 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
# Define a function to execute commands with `occ`
|
# Define a function to execute commands with `occ`
|
||||||
exec_occ() {
|
exec_occ() {
|
||||||
(cd "$final_path" && exec_as "$app" \
|
(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
|
# Define a function to add an external storage
|
||||||
|
|
|
@ -42,7 +42,7 @@ ynh_script_progression --message="Disabling maintenance mode..." --weight=3
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$final_path" && exec_as "$app" \
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -102,7 +102,7 @@ ynh_script_progression --message="Applying Nextcloud specific modifications..."
|
||||||
# Define a function to execute commands with `occ`
|
# Define a function to execute commands with `occ`
|
||||||
exec_occ() {
|
exec_occ() {
|
||||||
(cd "$final_path" && ynh_exec_as "$app" \
|
(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 ]
|
if [ $change_domain -eq 1 ]
|
||||||
|
|
|
@ -143,7 +143,7 @@ ynh_script_progression --message="Installing Nextcloud..." --weight=30
|
||||||
# Define a function to execute commands with `occ`
|
# Define a function to execute commands with `occ`
|
||||||
exec_occ() {
|
exec_occ() {
|
||||||
(cd "$final_path" && ynh_exec_as "$app" \
|
(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
|
# Set write access for the following commands
|
||||||
|
|
|
@ -194,7 +194,7 @@ exec_occ() {
|
||||||
NEXTCLOUD_PHP_VERSION="7.0"
|
NEXTCLOUD_PHP_VERSION="7.0"
|
||||||
fi
|
fi
|
||||||
(cd "$final_path" && ynh_exec_as "$app" \
|
(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
|
# Define a function to add an external storage
|
||||||
|
|
Loading…
Add table
Reference in a new issue