annotate debian/static/DEBIAN/postinst @ 27:5ba185ca7102

Fixed error checking during initialization, restructured code a bit to make it even simpler
author Ivo Smits <Ivo@UCIS.nl>
date Sat, 09 Apr 2011 17:36:48 +0200
parents 640f620a55cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
1 #!/bin/sh
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
2 if [ "$1" = "configure" ]; then
9
640f620a55cf Bugfixes for floating remote and debian upgrade
Ivo Smits <Ivo@UCIS.nl>
parents: 0
diff changeset
3 if ! getent passwd quicktun >/dev/null; then
640f620a55cf Bugfixes for floating remote and debian upgrade
Ivo Smits <Ivo@UCIS.nl>
parents: 0
diff changeset
4 /usr/sbin/useradd -d /nonexistent -N -r -s /bin/false -g nogroup quicktun
640f620a55cf Bugfixes for floating remote and debian upgrade
Ivo Smits <Ivo@UCIS.nl>
parents: 0
diff changeset
5 fi
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
6 fi