From f1d264c40f4c39fe08e13472f331c6667bd5749b Mon Sep 17 00:00:00 2001 From: liberodark Date: Sat, 5 Jan 2019 23:01:13 +0100 Subject: [PATCH] fix --- scripts/install | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 9564845..0796b69 100644 --- a/scripts/install +++ b/scripts/install @@ -174,17 +174,15 @@ ynh_setup_source "$final_path" mkdir -p /var/lib/pufferd /var/log/pufferd /etc/pufferd # setup application config -cp -a ../conf/config.json /etc/pufferd/config.json +cp -a ../conf/config.json $final_path/config.json #================================================= # MODIFY A CONFIG FILE #================================================= -ynh_replace_string "yunouser" "$db_name" "/etc/pufferd/config.json" -ynh_replace_string "yunopass" "$db_pwd" "/etc/pufferd/config.json" -ynh_replace_string "yunobase" "$db_name" "/etc/pufferd/config.json" -#ynh_replace_string "yunomail" "$email" "$final_path/config.json" -#ynh_replace_string "yunodomain" "$domain" "$final_path/.env" +ynh_replace_string "yunouser" "$db_name" "$final_path/config.json" +ynh_replace_string "yunopass" "$db_pwd" "$final_path/config.json" +ynh_replace_string "yunobase" "$db_name" "$final_path/config.json" #============================================== # INSTALL DAEMON Pufferd @@ -217,7 +215,7 @@ ynh_system_user_create $app ### you can make a backup of this file before modifying it again if the admin had modified it. # Calculate and store the config file checksum into the app settings -ynh_store_file_checksum "/etc/pufferd/config.json" +ynh_store_file_checksum "$final_path/config.json" #================================================= # GENERIC FINALIZATION