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
|
|
|
|
|
|
|
#domain=$new_domain
|
|
|
|
#path=new_path
|
2022-03-23 03:07:00 +01: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
|