Kay0u
5 years ago
No known key found for this signature in database
GPG Key ID: AAFEEB16CFA2AE2D
5 changed files with
5 additions and
5 deletions
-
scripts/actions/add_multimedia_directories
-
scripts/actions/disable_maintenance
-
scripts/change_url
-
scripts/install
-
scripts/upgrade
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -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 |
|
|
|
) |
|
|
|
|
|
|
|
#================================================= |
|
|
|
|
|
|
|
@ -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 ] |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|