2023-04-27 09:56:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2024-08-30 23:32:24 +02:00
|
|
|
ynh_script_progression "Updating NGINX web server configuration..."
|
2023-04-27 09:56:51 +02:00
|
|
|
|
2024-08-30 23:32:24 +02:00
|
|
|
ynh_config_change_url_nginx
|
2023-04-27 09:56:51 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# UPDATE HUMHUB CONFIGURATION
|
|
|
|
#=================================================
|
2024-08-30 23:32:24 +02:00
|
|
|
ynh_script_progression "Updating HUMHUB configuration..."
|
2023-04-27 09:56:51 +02:00
|
|
|
|
2023-04-27 18:16:43 +02:00
|
|
|
pushd $install_dir/protected
|
2024-08-30 23:32:24 +02:00
|
|
|
php$php_version yii settings/set base baseUrl http://$new_domain$new_path
|
2023-04-27 09:56:51 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-08-30 23:32:24 +02:00
|
|
|
ynh_script_progression "Change of URL completed for $app"
|