swift/debian/swift.postinst
2010-07-12 17:03:45 -05:00

9 lines
285 B
Bash

#!/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