2023-11-20 23:01:30 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
|
|
|
|
|
|
|
ynh_change_url_nginx_config
|
|
|
|
|
2023-11-20 23:54:33 +01:00
|
|
|
#=================================================
|
2024-06-19 21:30:51 +02:00
|
|
|
# SPECIFIC MODIFICATIONS
|
2023-11-20 23:54:33 +01:00
|
|
|
#=================================================
|
|
|
|
|
2024-06-19 21:30:51 +02:00
|
|
|
ynh_replace_string --match_string="APP_URL=https://$old_domain" --replace_string="APP_URL=https://$new_domain" \
|
|
|
|
--target_file="$install_dir/.env"
|
2023-12-15 20:09:45 +01:00
|
|
|
|
2024-06-19 21:30:51 +02:00
|
|
|
pushd "$install_dir"
|
|
|
|
"php$phpversion" artisan freescout:clear-cache
|
2023-12-15 20:09:45 +01:00
|
|
|
popd
|
2023-11-20 23:54:33 +01:00
|
|
|
|
2023-11-20 23:01:30 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|