Blame SOURCES/jetty-create-work-dir.patch

649839
From 2b9f0418ba16e828657f5353510f5d28a60d022a Mon Sep 17 00:00:00 2001
649839
From: Michal Srb <msrb@redhat.com>
649839
Date: Mon, 22 Apr 2013 07:56:08 +0200
649839
Subject: [PATCH] create work dir
649839
649839
---
649839
 jetty-distribution/src/main/resources/bin/jetty.sh | 7 +++++++
649839
 1 file changed, 7 insertions(+)
649839
649839
diff --git a/jetty-distribution/src/main/resources/bin/jetty.sh b/jetty-distribution/src/main/resources/bin/jetty.sh
649839
index cc3f771..9bd15c7 100755
649839
--- a/jetty-distribution/src/main/resources/bin/jetty.sh
649839
+++ b/jetty-distribution/src/main/resources/bin/jetty.sh
649839
@@ -348,6 +348,13 @@ JETTY_STATE=$(dirname $JETTY_PID)/jetty.state
649839
 JAVA_OPTIONS+=("-Djetty.state=$JETTY_STATE")
649839
 rm -f $JETTY_STATE
649839
 
649839
+#####################################################
649839
+# Try to create work directory if not exists
649839
+#####################################################
649839
+if [ ! -d work ]; then
649839
+    (umask 022 && mkdir -p "$(readlink -f work)")
649839
+fi
649839
+
649839
 ##################################################
649839
 # Setup JAVA if unset
649839
 ##################################################
649839
-- 
649839
1.8.1.4
649839