From f018b3d9583b33a8b48243edd1c39c9d7c824e14 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Thu, 1 Jun 2017 11:16:33 +0200 Subject: [PATCH] Errores al arrancar nginx por primera vez --- dev.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev.sh b/dev.sh index 95684afa7..1047788fb 100755 --- a/dev.sh +++ b/dev.sh @@ -12,11 +12,12 @@ case "$1" in start|"") $0 stop echo "Starting nginx." - "$nginxBin" -c "$nginxConf" -p "$nginxPrefix" + mkdir -p "$nginxPrefix/temp" + "$nginxBin" -c "$nginxConf" -p "$nginxPrefix" 2>> /dev/null ;; stop) echo "Stoping nginx." - "$nginxBin" -c "$nginxConf" -p "$nginxPrefix" -s stop + "$nginxBin" -c "$nginxConf" -p "$nginxPrefix" -s stop 2>> /dev/null ;; *) echo "Usage: `basename "$0"` [start|stop]"