1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pufferpanel_ynh.git synced 2024-09-03 20:16:03 +02:00
This commit is contained in:
liberodark 2019-01-05 23:01:13 +01:00
parent 5fe765d819
commit f1d264c40f

View file

@ -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