author | Michael Krelin <hacker@klever.net> | 2009-03-08 20:09:21 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-03-08 20:09:21 (UTC) |
commit | aadaa8b5d7eda23e72dbded9d6437b40358353f3 (patch) (side-by-side diff) | |
tree | 0bff6fdde1e2b9be02b48aaf7d03f095604718e1 /debian/iii.postinst | |
download | iii-aadaa8b5d7eda23e72dbded9d6437b40358353f3.zip iii-aadaa8b5d7eda23e72dbded9d6437b40358353f3.tar.gz iii-aadaa8b5d7eda23e72dbded9d6437b40358353f3.tar.bz2 |
Inital commit to public repository0.0
-rwxr-xr-x | debian/iii.postinst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/iii.postinst b/debian/iii.postinst new file mode 100755 index 0000000..20463a1 --- a/dev/null +++ b/debian/iii.postinst @@ -0,0 +1,18 @@ +#!/bin/sh +set -e +UG=eyefi +P=eyekindo +H=/var/lib/$P + +if [ "$1" = configure ] ; then + getent group $UG >/dev/null 2>&1 || addgroup --system $UG + getent passwd $UG >/dev/null 2>&1 || adduser --system --home $H \ + --no-create-home --disabled-password --ingroup $UG $UG + if ! test -d $H ; then + mkdir -p $H + chown $UG:$UG $H + chmod 2770 $H + fi +fi + +#DEBHELPER# |