1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glpi_ynh.git synced 2024-09-03 20:36:21 +02:00
glpi_ynh/scripts/change_url

31 lines
933 B
Text
Raw Normal View History

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