From 24302c39d45ab8a8af717cdbf8406a6805309b77 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Tue, 24 Apr 2018 09:38:09 -0700 Subject: [PATCH] fix #7 apt-get update before prerequisite check --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 04e5909..e5809fe 100755 --- a/install.sh +++ b/install.sh @@ -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