easyappointments_ynh/scripts/change_url

26 lines
747 B
Text
Raw Permalink Normal View History

2021-08-13 15:48:24 +03:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression "Updating NGINX web server configuration..."
2021-08-13 15:48:24 +03:00
ynh_config_change_url_nginx
2023-03-29 20:23:48 +03:00
2021-08-13 15:48:24 +03:00
#=================================================
2022-06-01 05:16:19 +03:00
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression "Updating configuration..."
2021-08-13 15:48:24 +03:00
2023-03-29 20:30:41 +03:00
domain=$new_domain
ynh_config_add --template="config.php" --destination="$install_dir/config.php"
2021-08-13 15:48:24 +03:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Change of URL completed for $app"