-rwxr-xr-x | debian/iii.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/iii.postinst b/debian/iii.postinst index 20463a1..f52bf84 100755 --- a/debian/iii.postinst +++ b/debian/iii.postinst | |||
@@ -1,16 +1,16 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | set -e | 2 | set -e |
3 | UG=eyefi | 3 | UG=eyefi |
4 | P=eyekindo | 4 | P=iii |
5 | H=/var/lib/$P | 5 | H=/var/lib/$P |
6 | 6 | ||
7 | if [ "$1" = configure ] ; then | 7 | if [ "$1" = configure ] ; then |
8 | getent group $UG >/dev/null 2>&1 || addgroup --system $UG | 8 | getent group $UG >/dev/null 2>&1 || addgroup --system $UG |
9 | getent passwd $UG >/dev/null 2>&1 || adduser --system --home $H \ | 9 | getent passwd $UG >/dev/null 2>&1 || adduser --system --home $H \ |
10 | --no-create-home --disabled-password --ingroup $UG $UG | 10 | --no-create-home --disabled-password --ingroup $UG $UG |
11 | if ! test -d $H ; then | 11 | if ! test -d $H ; then |
12 | mkdir -p $H | 12 | mkdir -p $H |
13 | chown $UG:$UG $H | 13 | chown $UG:$UG $H |
14 | chmod 2770 $H | 14 | chmod 2770 $H |
15 | fi | 15 | fi |
16 | fi | 16 | fi |