mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
parent
faec2bb235
commit
dd7c35df11
1 changed files with 3 additions and 5 deletions
|
@ -103,14 +103,12 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reconfiguring congif file.." --weight=1
|
ynh_script_progression --message="Reconfiguring congif file.." --weight=1
|
||||||
|
|
||||||
oldUrl=$(https://${domain}${path_url})
|
|
||||||
newUrl=$(https://${new_domain}${new_path})
|
|
||||||
|
|
||||||
sed -i "/APP_URL=/c\APP_URL=$newUrl" $final_path/.env
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
yes | php$phpversion artisan bookstack:update-url $oldUrl $newUrl
|
yes | php$phpversion artisan bookstack:update-url https://${domain}${path_url} https://${new_domain}${new_path}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
sed -i "/APP_URL=/c\APP_URL=https://${new_domain}${new_path}" $final_path/.env
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue