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:
parent
d9365a9a1d
commit
6fc7a4272f
1 changed files with 10 additions and 0 deletions
|
@ -28,6 +28,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
|
||||||
|
|
||||||
# Needed for helper "ynh_add_nginx_config"
|
# Needed for helper "ynh_add_nginx_config"
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
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
|
# 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"
|
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
|
||||||
fi
|
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
|
# RELOAD NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue