2019-06-16 00:06:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2024-08-30 22:49:44 +02:00
|
|
|
ynh_script_progression "Updating NGINX web server configuration..."
|
2019-06-16 00:06:51 +02:00
|
|
|
|
2024-08-30 22:49:44 +02:00
|
|
|
ynh_config_change_url_nginx
|
2019-06-16 00:06:51 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# UPDATE conf file
|
|
|
|
#=================================================
|
|
|
|
|
2024-08-30 22:49:44 +02:00
|
|
|
ynh_replace --file="$install_dir/htdocs/conf/conf.php" \
|
|
|
|
--match="$old_domain$old_path" \
|
|
|
|
--replace="$new_domain$new_path"
|
2019-06-16 00:06:51 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-08-30 22:49:44 +02:00
|
|
|
ynh_script_progression "Change of URL completed for $app"
|