1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00
dolibarr_ynh/scripts/change_url

28 lines
907 B
Text
Raw Permalink Normal View History

#!/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
2023-05-22 08:21:08 +02:00
ynh_change_url_nginx_config
#=================================================
# UPDATE conf file
#=================================================
2023-05-22 08:21:08 +02:00
ynh_replace_string --match_string="$old_domain$old_path" --replace_string="$new_domain$new_path" --target_file="$install_dir/htdocs/conf/conf.php"
#=================================================
# END OF SCRIPT
#=================================================
2019-07-05 22:34:21 +02:00
ynh_script_progression --message="Change of URL completed for $app" --last