source:
core/trunk/client/pkg/deb/preinst
@
257
| Last change on this file since 257 was 257, checked in by , 12 years ago | |
|---|---|
| File size: 463 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | case "$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 | fi |
| 14 | ;; |
| 15 | |
| 16 | upgrade|abort-upgrade) |
| 17 | ;; |
| 18 | |
| 19 | *) |
| 20 | echo "preinst called with unknown argument \`$1'" >&2 |
| 21 | exit 0 |
| 22 | ;; |
| 23 | esac |
| 24 | |
| 25 | |
| 26 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/trac/flarmradar/chrome/site/your_project_logo.png)