diff --git a/scripts/install b/scripts/install index a175f5f..ea3ab9f 100755 --- a/scripts/install +++ b/scripts/install @@ -152,16 +152,6 @@ db_name=$(ynh_sanitize_dbid --db_name=$app) db_user=$db_name ynh_app_setting_set --app=$app --key=db_name --value=$db_name -#================================================= -# MODIFY A CONFIG FILE -#================================================= -ynh_script_progression --message="Adding a configuration file..." --weight=1 - -ynh_add_config --template="../conf/htconfig.sample.php" --destination="$final_path/.htconfig.php" - -chmod 600 "$final_path/.htconfig.php" -chown $app:$app "$final_path/.htconfig.php" - #================================================= # CREATE A DATABASE #================================================= @@ -181,6 +171,16 @@ else ynh_die --message="Some problem occured in creating the database, contact maintainer" fi +#================================================= +# MODIFY A CONFIG FILE +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="../conf/htconfig.sample.php" --destination="$final_path/.htconfig.php" + +chmod 600 "$final_path/.htconfig.php" +chown $app:$app "$final_path/.htconfig.php" + #================================================= # NGINX CONFIGURATION #=================================================