2018-08-14 22:18:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
2022-01-14 23:58:52 +01:00
|
|
|
# GENERIC STARTING
|
2018-08-14 22:18:22 +02:00
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
2022-01-14 23:58:52 +01:00
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
2018-08-14 22:18:22 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
# Check if the new path stay /SOGo if not exit
|
2024-01-30 23:33:35 +01:00
|
|
|
if [[ $path != "/SOGo" ]]; then
|
2019-06-07 23:09:30 +02:00
|
|
|
ynh_die --message "You can't use an other path than '/SOGo'"
|
2018-08-14 22:18:22 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD MODIFICATIONS
|
|
|
|
#=================================================
|
2022-01-15 10:17:34 +01:00
|
|
|
ynh_script_progression --message="Updating NGINX configuration..."
|
2019-06-07 23:09:30 +02:00
|
|
|
|
2024-01-30 23:33:35 +01:00
|
|
|
ynh_change_url_nginx_config
|
2024-02-23 00:21:58 +01:00
|
|
|
config_nginx
|
2019-06-07 23:09:30 +02:00
|
|
|
|
2022-01-14 23:58:52 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2019-06-07 23:09:30 +02:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|