2018-01-24 20:18:53 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2021-08-16 12:16:15 +02:00
|
|
|
ynh_print_info "Updating NGINX web server configuration..."
|
2018-01-24 20:18:53 +01:00
|
|
|
|
2023-10-15 14:09:37 +02:00
|
|
|
ynh_change_url_nginx_config
|
2018-01-24 20:18:53 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# SPECIFIC MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
|
2023-10-15 14:03:13 +02:00
|
|
|
ynh_replace_string --match_string="$old_domain$old_path" --replace_string="$new_domain$new_path" --target_file="$install_dir/config/settings.php"
|
2019-03-09 10:14:08 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-08-16 12:16:15 +02:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app"
|