From ba22325ffce1e6c6158e103f4fd1a86d65447329 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 13 Mar 2022 19:03:02 +0100 Subject: [PATCH] set true/false --- scripts/install | 12 ++++++------ scripts/upgrade | 6 ------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index 587acc4..f9de268 100755 --- a/scripts/install +++ b/scripts/install @@ -33,6 +33,12 @@ phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME +if [ $registration -eq 1 ]; then + registration="true" +else + registration="false" +fi + #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= @@ -135,12 +141,6 @@ setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/" #================================================= ynh_script_progression --message="Adding a configuration file..." -if [ $registration -eq 1 ]; then - registration="true" -else - registration="false" -fi - ynh_add_config --template="../conf/local.yaml" --destination="$final_path/config/packages/local.yaml" chmod 400 "$final_path/config/packages/local.yaml" diff --git a/scripts/upgrade b/scripts/upgrade index dcb74d7..170d05c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -153,12 +153,6 @@ ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_ #================================================= ynh_script_progression --message="Adding a configuration file..." -if [ $registration -eq 1 ]; then - registration="true" -else - registration="false" -fi - ynh_add_config --template="../conf/local.yaml" --destination="$final_path/config/packages/local.yaml" chmod 400 "$final_path/config/packages/local.yaml"