From 223f6982cd83310c03462a7ef92fa887dffe03f0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 16 Nov 2021 09:19:45 +0100 Subject: [PATCH] Fix --- scripts/install | 2 ++ scripts/upgrade | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 2892a8a..5202159 100644 --- a/scripts/install +++ b/scripts/install @@ -24,6 +24,7 @@ domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE +phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME @@ -95,6 +96,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # MODIFY A CONFIG FILE #================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/data/config.php" diff --git a/scripts/upgrade b/scripts/upgrade index eeb7c19..a17e175 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,10 +111,10 @@ ynh_add_fpm_config # MODIFY A CONFIG FILE #================================================= -ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/data/config.php" +#ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/data/config.php" -chmod 400 "$final_path/data/config.php" -chown $app "$final_path/data/config.php" +#chmod 400 "$final_path/data/config.php" +#chown $app "$final_path/data/config.php" #================================================= # RELOAD NGINX