1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/humhub_ynh.git synced 2024-09-03 19:26:11 +02:00

Set new url in humhub configuration when url is changed

This commit is contained in:
Sébastien Mennetrier 2023-02-03 11:06:59 +01:00
parent d9365a9a1d
commit 6fc7a4272f

View file

@ -28,6 +28,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
# Needed for helper "ynh_add_nginx_config"
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP
@ -91,6 +92,15 @@ then
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi
#=================================================
# UPDATE HUMHUB CONFIGURATION
#=================================================
ynh_script_progression --message="Updating HUMHUB configuration..." --time --weight=1
pushd $final_path/protected
php$phpversion yii settings/set base baseUrl http://$new_domain$new_path
popd
#=================================================
# RELOAD NGINX
#=================================================