1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00

Update change_url

This commit is contained in:
ericgaspar 2022-01-29 15:41:59 +01:00
parent d356606f0d
commit 3f7e020940
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -99,14 +99,13 @@ fi
#=================================================
ynh_script_progression --message="Reconfiguring congif file.." --weight=1
new_app_url_domain="https://${new_domain}${new_path%/}"
old_app_url_domain="https://${old_domain}${old_path%/}"
pushd $final_path
yes | php$phpversion artisan bookstack:update-url $old_app_url_domain $new_app_url_domain
yes | php$phpversion artisan bookstack:update-url $old_app_url_domain https://${new_domain}${new_path}
popd
sed -i "/APP_URL=/c\APP_URL=$new_app_url_domain" $final_path/.env
sed -i "/APP_URL=/c\APP_URL=https://${new_domain}${new_path}" $final_path/.env
#=================================================
# RELOAD NGINX