From 4bd35e5294e230fa9915f00da6037de76186490d Mon Sep 17 00:00:00 2001 From: liberodark Date: Sat, 5 Jan 2019 17:17:06 +0100 Subject: [PATCH] fix --- scripts/install | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 7652276..a212284 100644 --- a/scripts/install +++ b/scripts/install @@ -155,16 +155,18 @@ ynh_setup_source "$final_path" # create a user #email=$(ynh_user_get_info $admin 'mail') +mkdir -p /var/lib/pufferd /var/log/pufferd /etc/pufferd + # setup application config -cp -a ../conf/config.json $final_path/config.json +cp -a ../conf/config.json /etc/pufferd/config.json #================================================= # MODIFY A CONFIG FILE #================================================= -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" +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" @@ -172,10 +174,9 @@ ynh_replace_string "yunobase" "$db_name" "$final_path/config.json" # INSTALL DAEMON Pufferd #============================================== -mkdir -p /var/lib/pufferd /var/log/pufferd /etc/pufferd wget https://github.com/YunoHost-Apps/pufferpanel_ynh/releases/download/1.2.5/pufferd_1.2.5_amd64.deb dpkg --install pufferd_1.2.5_amd64.deb -pufferd --install --auth https://$domain$path_url --token ${nodeSecret} --config $final_path/config.json +pufferd --install --auth https://$domain$path_url --token ${nodeSecret} --config /etc/pufferd/config.json #================================================= # NGINX CONFIGURATION