summaryrefslogtreecommitdiff
path: root/debian/rhimportd.pre
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-05 22:02:47 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-05 22:02:47 (GMT)
commit772896795c3799b4595eb6abbc0355184edc91ff (patch)
tree0843c5ea3d49ae562f920413afcdcc2c204cd2fa /debian/rhimportd.pre
parent28dd0e865c14a81f833d9ea52db942a8aa7d78d8 (diff)
fix ownership of dirs created by preperation script
Diffstat (limited to 'debian/rhimportd.pre')
-rw-r--r--debian/rhimportd.pre3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/rhimportd.pre b/debian/rhimportd.pre
index 8610c85..a97f474 100644
--- a/debian/rhimportd.pre
+++ b/debian/rhimportd.pre
@@ -6,14 +6,17 @@
if [ -n "$RHIMPORTD_TEMP_DIR" ]; then
mkdir -m 775 -p "$RHIMPORTD_TEMP_DIR"
+ chown rhimportd:rhimportd "$RHIMPORTD_TEMP_DIR"
fi
if [ -n "$RHIMPORTD_LOCAL_FETCH_DIR" ]; then
mkdir -m 775 -p "$RHIMPORTD_LOCAL_FETCH_DIR"
+ chown rhimportd:rhimportd "$RHIMPORTD_LOCAL_FETCH_DIR"
fi
if [ -n "$RHIMPORTD_WATCH_DIR" ]; then
mkdir -m 775 -p "$RHIMPORTD_WATCH_DIR"
+ chown rhimportd:rhimportd "$RHIMPORTD_WATCH_DIR"
fi
exit 0