source: core/trunk/server/pkg/deb/preinst

Last change on this file was 377, checked in by smoser, 10 years ago

initial version for server

File size: 501 bytes
Line 
1#!/bin/sh
2set -e
3
4case "$1" in
5  install)
6    if ! getent group flarm >/dev/null; then
7      addgroup --quiet --system flarm
8    fi
9
10    if ! getent passwd flarm >/dev/null; then
11      adduser --system --ingroup flarm --home /var/spool/flarm \
12        --gecos "Flarmradar User" --shell /bin/sh flarm
13      usermod -a -G tty,dialout flarm
14    fi
15    ;;
16
17    upgrade|abort-upgrade)
18        ;;
19
20    *)
21        echo "preinst called with unknown argument \`$1'" >&2
22        exit 0
23        ;;
24esac
25
26
27exit 0
Note: See TracBrowser for help on using the repository browser.