summaryrefslogtreecommitdiff
path: root/debian/swift.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/swift.postinst')
-rw-r--r--debian/swift.postinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/swift.postinst b/debian/swift.postinst
new file mode 100644
index 000000000..f26869f38
--- /dev/null
+++ b/debian/swift.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+# there's probably a better way
+python -m compileall `python -c 'import swift;import os;print os.path.dirname(swift.__file__)'`
+if ! getent passwd swift > /dev/null ; then
+ adduser --system --quiet --disabled-login --disabled-password --no-create-home --group swift
+fi
+