summaryrefslogtreecommitdiff
path: root/debian/rhimportd.pre
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-05 21:16:03 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-05 21:16:03 (GMT)
commita2a2622367fed4490c1ad43bfc2ebf03550810b5 (patch)
tree9843deda0935167b7f7fdd81031e90b5909c5e7b /debian/rhimportd.pre
parent64d5a3656ea48785296fe6de80c5ba6b44c55ddb (diff)
debian package fixes and improvments
Diffstat (limited to 'debian/rhimportd.pre')
-rw-r--r--debian/rhimportd.pre19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/rhimportd.pre b/debian/rhimportd.pre
new file mode 100644
index 0000000..8610c85
--- /dev/null
+++ b/debian/rhimportd.pre
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# create some directories needed by rhimportd
+# this would normally be done by the initscript.
+#
+
+if [ -n "$RHIMPORTD_TEMP_DIR" ]; then
+ mkdir -m 775 -p "$RHIMPORTD_TEMP_DIR"
+fi
+
+if [ -n "$RHIMPORTD_LOCAL_FETCH_DIR" ]; then
+ mkdir -m 775 -p "$RHIMPORTD_LOCAL_FETCH_DIR"
+fi
+
+if [ -n "$RHIMPORTD_WATCH_DIR" ]; then
+ mkdir -m 775 -p "$RHIMPORTD_WATCH_DIR"
+fi
+
+exit 0