mirror of
https://github.com/YunoHost-Apps/send_ynh.git
synced 2024-11-22 05:51:35 +01:00
Fix upgrade
This commit is contained in:
parent
a2a077707f
commit
5657b471cd
@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
@ -132,6 +133,16 @@ then
|
||||
popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating a configuration file..."
|
||||
|
||||
ynh_add_config --template="../conf/config.js" --destination="$final_path/server/config.js"
|
||||
|
||||
chmod 400 "$final_path/server/config.js"
|
||||
chown $app: "$final_path/server/config.js"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
|
Loading…
Reference in New Issue
Block a user