2018-06-25 08:41:44 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2022-08-15 15:18:03 +02:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
2018-06-25 08:41:44 +02:00
|
|
|
|
2023-03-27 21:45:01 +02:00
|
|
|
ynh_change_url_nginx_config
|
|
|
|
|
2018-06-25 08:41:44 +02:00
|
|
|
#=================================================
|
|
|
|
# SPECIFIC MODIFICATIONS
|
|
|
|
#=================================================
|
2022-01-23 23:07:14 +01:00
|
|
|
|
2018-06-25 08:41:44 +02:00
|
|
|
# Run monica update
|
2023-03-27 21:45:01 +02:00
|
|
|
pushd "$install_dir"
|
2022-01-23 23:07:14 +01:00
|
|
|
/usr/bin/php$phpversion artisan monica:update --force
|
|
|
|
popd
|
2018-06-25 08:41:44 +02:00
|
|
|
|
2020-06-11 03:13:15 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
2018-06-25 08:41:44 +02:00
|
|
|
|
2022-08-15 15:18:03 +02:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|