2018-10-04 02:33:13 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2021-01-10 19:10:35 +01:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=3
|
2018-10-04 02:33:13 +02:00
|
|
|
|
2024-02-04 18:59:58 +01:00
|
|
|
ynh_change_url_nginx_config
|
2018-10-04 02:33:13 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# SPECIFIC MODIFICATIONS
|
|
|
|
#=================================================
|
2022-06-08 04:32:45 +02:00
|
|
|
# UPDATE A CONFIG FILE
|
|
|
|
#=================================================
|
2022-10-16 20:50:04 +02:00
|
|
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
2019-04-06 23:32:24 +02:00
|
|
|
|
2024-02-04 18:59:58 +01:00
|
|
|
ynh_backup_if_checksum_is_different --file="$install_dir/config/config.ini"
|
|
|
|
ynh_replace_string --match_string="$old_domain" --replace_string="$new_domain" --target_file="$install_dir/config/config.ini"
|
|
|
|
ynh_store_file_checksum --file="$install_dir/config/config.ini"
|
2019-04-06 23:32:24 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-01-10 19:10:35 +01:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|