From dd7c35df11d42fc85120997a74571aafb31bcdc2 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 28 Jan 2022 23:18:05 +0100 Subject: [PATCH] Revert "Update change_url" This reverts commit faec2bb235c5c944f78d83b19a2aa38e8c070d53. --- scripts/change_url | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 71edd9e..7b4dcec 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -103,14 +103,12 @@ fi #================================================= 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 - 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 +sed -i "/APP_URL=/c\APP_URL=https://${new_domain}${new_path}" $final_path/.env + #================================================= # RELOAD NGINX #=================================================