diff --git a/freebsd/resources/nginx.sh b/freebsd/resources/nginx.sh index 2cfb9ae..2a6930d 100755 --- a/freebsd/resources/nginx.sh +++ b/freebsd/resources/nginx.sh @@ -7,6 +7,9 @@ cd "$(dirname "$0")" . ./config.sh . ./colors.sh +#set the current working directory +cwd=$(pwd) + #send a message verbose "Installing the web server" @@ -46,6 +49,9 @@ if [ ."$php_version" = ."7" ]; then cd /usr/ports/www/php70-session/ && make install clean BATCH=yes fi +#reset the current working directory +cd $cwd + #update the list of executables in the path rehash