From b558968551a89bf34cc2fd0b203e55304a7b5967 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 17 Mar 2021 12:38:04 +0100 Subject: [PATCH] Cleaning up --- scripts/install | 10 ---------- scripts/upgrade | 12 ------------ 2 files changed, 22 deletions(-) diff --git a/scripts/install b/scripts/install index 5ef1cd7..0e9d309 100644 --- a/scripts/install +++ b/scripts/install @@ -112,16 +112,6 @@ ynh_add_systemd_config # CONFIGURE CONFIG.JS #================================================= -# # Copy default configuration file -# mv "../conf/config.js" "$final_path/config/config.js" - -# ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/config.js" -# ynh_replace_string --match_string="__PORTI__" --replace_string="$porti" --target_file="$final_path/config/config.js" -# ynh_replace_string --match_string="__EMAIL__" --replace_string="$email" --target_file="$final_path/config/config.js" - -# # Store file checksum to detected user modifications on upgrade -# ynh_store_file_checksum "$final_path/config/config.js" - ynh_add_config --template="../conf/config.js" --destination="$final_path/config/config.js" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c99ed92..5d3423a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,18 +111,6 @@ ynh_system_user_create --username=$app # CONFIGURE CONFIG.JS #================================================= -# ynh_backup_if_checksum_is_different "$final_path/config/config.js" - -# # Copy default configuration file -# mv "../conf/config.js" "$final_path/config/config.js" - -# ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/config.js" -# ynh_replace_string --match_string="__PORTI__" --replace_string="$porti" --target_file="$final_path/config/config.js" -# ynh_replace_string --match_string="__EMAIL__" --replace_string="$email" --target_file="$final_path/config/config.js" - -# # Store file checksum to detected user modifications on upgrade -# ynh_store_file_checksum "$final_path/config/config.js" - ynh_add_config --template="../conf/config.js" --destination="$final_path/config/config.js" #=================================================