1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spacedeck_ynh.git synced 2024-09-03 20:26:14 +02:00

Fix change URL

This commit is contained in:
yalh76 2022-02-23 12:31:40 +01:00
parent 8547062da6
commit 49d90d7cb4
2 changed files with 9 additions and 3 deletions

View file

@ -28,6 +28,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
# Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
domain=$(ynh_app_setting_get --app=$app --key=domain)
port=$(ynh_app_setting_get --app=$app --key=port)
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
api_secret=$(ynh_app_setting_get --app=$app --key=api_secret)
@ -112,10 +113,14 @@ fi
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ADD A CONFIGURATION
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression --message="Updating a config file..."
ynh_add_config --template="default.json" --destination="$final_path/config/default.json"
domain=$new_domain
path_url=$new_path
ynh_add_config --template="../conf/default.json" --destination="$final_path/config/default.json"
chmod 400 "$final_path/config/default.json"
chown $app:$app "$final_path/config/default.json"
@ -127,6 +132,7 @@ chown $app:$app "$final_path/config/default.json"
#=================================================
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#=================================================

View file

@ -133,7 +133,7 @@ popd
#=================================================
ynh_script_progression --message="Updating a configuration file..." --time --weight=1
ynh_add_config --template="default.json" --destination="$final_path/config/default.json"
ynh_add_config --template="../conf/default.json" --destination="$final_path/config/default.json"
chmod 400 "$final_path/config/default.json"
chown $app:$app "$final_path/config/default.json"