2020-04-16 14:08:38 +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-10-06 13:58:22 +02:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=5
|
2020-04-16 14:08:38 +02:00
|
|
|
|
2023-06-14 10:41:57 +02:00
|
|
|
ynh_change_url_nginx_config
|
|
|
|
|
2020-04-16 14:08:38 +02:00
|
|
|
#=================================================
|
|
|
|
# SPECIFIC MODIFICATIONS
|
|
|
|
#=================================================
|
2022-07-07 03:08:58 +02:00
|
|
|
# UPDATE A CONFIG FILE
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Updating a configuration file..."
|
2020-04-16 14:08:38 +02:00
|
|
|
|
2023-06-14 10:41:57 +02:00
|
|
|
ynh_replace_string --match_string="https://$old_domain${old_path%/}" --replace_string="https://$new_domain${new_path%/}" --target_file="$install_dir/wakka.config.php"
|
2020-05-06 13:40:31 +02:00
|
|
|
|
2020-04-16 14:08:38 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2021-11-05 22:45:54 +01:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|