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

37 lines
1.1 KiB
Text
Raw Normal View History

2022-03-23 03:07:00 +01:00
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD MODIFICATIONS
#=================================================
# 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
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ADD A CONFIGURATION
#=================================================
2022-10-05 22:36:43 +02:00
ynh_script_progression --message="Adding a configuration file..." --weight=1
2023-09-26 09:49:11 +02:00
2023-09-26 09:41:46 +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