2022-03-23 03:07:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2022-10-05 22:36:43 +02:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
2022-03-23 03:07:00 +01:00
|
|
|
|
2023-09-26 09:41:46 +02:00
|
|
|
ynh_change_url_nginx_config
|
|
|
|
|
2022-03-23 03:07:00 +01:00
|
|
|
#=================================================
|
|
|
|
# ADD A CONFIGURATION
|
|
|
|
#=================================================
|
2024-07-10 09:07:29 +02:00
|
|
|
ynh_script_progression --message="Configuring $app..." --weight=1
|
2023-09-26 09:49:11 +02:00
|
|
|
|
2024-07-10 09:07:29 +02:00
|
|
|
pushd "$install_dir"
|
|
|
|
"php$phpversion" bin/console glpi:config:set url_base "https://$domain$path"
|
2022-03-23 03:07:00 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2022-10-05 22:36:43 +02:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|