summaryrefslogtreecommitdiffabout
path: root/debian/iii.postinst
blob: f52bf84816d085342785fc6e9fd6d5355e717197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e
UG=eyefi
P=iii
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#