2018-05-27 16:51:43 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2020-11-11 22:58:22 +01:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2
|
2018-05-27 16:51:43 +02:00
|
|
|
|
2023-04-04 18:50:46 +02:00
|
|
|
ynh_change_url_nginx_config
|
2018-05-27 16:51:43 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# SPECIFIC MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# Change domain name in parameters.yml
|
2023-04-04 18:50:46 +02:00
|
|
|
ynh_replace_string --match_string="\$cfg\['web_root'\] = .*" --replace_string="\$cfg['web_root'] = 'https://' . '$new_domain' . '${new_path%/}' . '/';" --target_file="$install_dir/lib/config.local.php"
|
2019-02-17 20:55:13 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2020-11-11 22:58:22 +01:00
|
|
|
ynh_script_progression --message="Change of URL completed for Jirafeau" --last
|