瀏覽代碼

Update finish.sh

FusionPBX 8 年之前
父節點
當前提交
70c876bcda
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      freebsd/resources/finish.sh

+ 6 - 0
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