diff options
Diffstat (limited to 'debian/rhimportd.pre')
-rw-r--r-- | debian/rhimportd.pre | 19 |
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 |