summaryrefslogtreecommitdiffabout
path: root/debian/iii.postinst
authorMichael Krelin <hacker@klever.net>2009-03-08 20:09:21 (UTC)
committer Michael Krelin <hacker@klever.net>2009-03-08 20:09:21 (UTC)
commitaadaa8b5d7eda23e72dbded9d6437b40358353f3 (patch) (unidiff)
tree0bff6fdde1e2b9be02b48aaf7d03f095604718e1 /debian/iii.postinst
downloadiii-0.0.zip
iii-0.0.tar.gz
iii-0.0.tar.bz2
Inital commit to public repository0.0
Diffstat (limited to 'debian/iii.postinst') (more/less context) (ignore whitespace changes)
-rwxr-xr-xdebian/iii.postinst18
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 @@
1#!/bin/sh
2set -e
3UG=eyefi
4P=eyekindo
5H=/var/lib/$P
6
7if [ "$1" = configure ] ; then
8 getent group $UG >/dev/null 2>&1 || addgroup --system $UG
9 getent passwd $UG >/dev/null 2>&1 || adduser --system --home $H \
10 --no-create-home --disabled-password --ingroup $UG $UG
11 if ! test -d $H ; then
12 mkdir -p $H
13 chown $UG:$UG $H
14 chmod 2770 $H
15 fi
16fi
17
18#DEBHELPER#