2020-11-15 21:54:22 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2021-07-26 12:16:15 +02:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..."
|
2020-11-15 21:54:22 +01:00
|
|
|
|
2023-06-05 10:48:49 +02:00
|
|
|
ynh_change_url_nginx_config
|
2020-11-15 21:54:22 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# SPECIFIC MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
# MODIFY A CONFIG FILE
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Modifying a config file..."
|
|
|
|
|
2021-07-26 12:16:15 +02:00
|
|
|
ynh_replace_string --match_string="$old_domain$old_path" --replace_string="$new_domain$new_path" --target_file="$final_path/.env"
|
|
|
|
ynh_store_file_checksum --file="$final_path/.env"
|
2020-11-15 21:54:22 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app"
|