mirror of
https://github.com/YunoHost-Apps/pufferpanel_ynh.git
synced 2024-09-03 20:16:03 +02:00
fix
This commit is contained in:
parent
5fe765d819
commit
f1d264c40f
1 changed files with 5 additions and 7 deletions
|
@ -174,17 +174,15 @@ ynh_setup_source "$final_path"
|
||||||
mkdir -p /var/lib/pufferd /var/log/pufferd /etc/pufferd
|
mkdir -p /var/lib/pufferd /var/log/pufferd /etc/pufferd
|
||||||
|
|
||||||
# setup application config
|
# 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
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_replace_string "yunouser" "$db_name" "/etc/pufferd/config.json"
|
ynh_replace_string "yunouser" "$db_name" "$final_path/config.json"
|
||||||
ynh_replace_string "yunopass" "$db_pwd" "/etc/pufferd/config.json"
|
ynh_replace_string "yunopass" "$db_pwd" "$final_path/config.json"
|
||||||
ynh_replace_string "yunobase" "$db_name" "/etc/pufferd/config.json"
|
ynh_replace_string "yunobase" "$db_name" "$final_path/config.json"
|
||||||
#ynh_replace_string "yunomail" "$email" "$final_path/config.json"
|
|
||||||
#ynh_replace_string "yunodomain" "$domain" "$final_path/.env"
|
|
||||||
|
|
||||||
#==============================================
|
#==============================================
|
||||||
# INSTALL DAEMON Pufferd
|
# 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.
|
### 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
|
# 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
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue