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:
parent
4a21b56c5e
commit
7ebbe1c2bc
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,6 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
|||
db_user=$db_name
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||
phpversion=$YNH_PHP_VERSION
|
||||
app_url_domain=$(ynh_app_setting_get --app=$app --key=app_url_domain)
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
|
@ -105,9 +104,10 @@ 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 $app_url_domain $new_app_url_domain
|
||||
yes | php$phpversion artisan bookstack:update-url $old_app_url_domain $new_app_url_domain
|
||||
popd
|
||||
|
||||
sed -i "/APP_URL=/c\APP_URL=$new_app_url_domain" $final_path/.env
|
||||
|
|
Loading…
Add table
Reference in a new issue