fix #7 apt-get update before prerequisite check

This commit is contained in:
Paul Liverman III 2018-04-24 09:38:09 -07:00
parent 6f9c64416b
commit 24302c39d4

View File

@ -19,8 +19,9 @@ DOMAIN_NAME=${DOMAIN_NAME:-localhost}
PORT=${PORT:-9872}
### PREREQUISITES ###
sudo apt-get update
if ! command -v nginx >/dev/null 2>&1
if ! command -v nginx >/dev/null 2>&1 && [ "$1" != "dev" ]
then
sudo apt-get install nginx -y
fi