From 70c876bcda098d2693a6a9cda4218d15c703fa45 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 25 Jun 2017 20:27:03 -0600 Subject: [PATCH] Update finish.sh --- freebsd/resources/finish.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freebsd/resources/finish.sh b/freebsd/resources/finish.sh index 21762b6..f12f3e9 100755 --- a/freebsd/resources/finish.sh +++ b/freebsd/resources/finish.sh @@ -7,6 +7,9 @@ cd "$(dirname "$0")" . ./config.sh . ./colors.sh +#set the current working directory +cwd=$(pwd) + if [ .$nginx_enabled = .'true' ]; then #database details @@ -87,6 +90,9 @@ if [ .$nginx_enabled = .'true' ]; then if [ .$nginx_enabled = .'true' ]; then cd /usr/local/www/fusionpbx && php /usr/local/www/fusionpbx/core/upgrade/upgrade_domains.php fi + + #reset the current working directory + cd $cwd fi if [ .$switch_enabled = .'true' ]; then