1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00

Fix change_url

This commit is contained in:
tituspijean 2022-08-25 15:01:12 +02:00
parent de9b8d119e
commit f9535c62fd
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -32,6 +32,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
# Add settings here as needed by your application
domain=$YNH_APP_NEW_DOMAIN
server_name=$(ynh_app_setting_get --app=$app --key=server_name)
port=$(ynh_app_setting_get --app=$app --key=port)
tls_port=$(ynh_app_setting_get --app=$app --key=tls_port)
@ -67,6 +68,7 @@ change_path=0
if [ "$old_path" != "$new_path" ]
then
change_path=1
ynh_die --message "The new URL needs to be at the root of a domain."
fi
#=================================================
@ -114,9 +116,6 @@ fi
#=================================================
ynh_script_progression --message="Updating systemd configuration..." --weight=1
# Load the Go environment path
ynh_use_go
# Create a dedicated systemd config
ynh_add_systemd_config