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
|
|
|
|
#=================================================
|
2021-01-07 14:24:42 +01:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
2019-06-16 00:06:51 +02:00
|
|
|
|
2024-03-25 21:26:07 +01:00
|
|
|
ynh_change_url_nginx_config
|
2019-06-16 00:06:51 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# UPDATE conf file
|
|
|
|
#=================================================
|
|
|
|
|
2024-03-25 22:28:52 +01:00
|
|
|
ynh_replace_string --target_file="$install_dir/htdocs/conf/conf.php" \
|
|
|
|
--match_string="$old_domain$old_path" \
|
|
|
|
--replace_string="$new_domain$new_path"
|
2019-06-16 00:06:51 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2019-07-05 22:34:21 +02:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|