root / pykota / trunk / debian / preinst @ 2110

Revision 2110, 360 bytes (checked in by jalet, 19 years ago)

added postinst and preinst scripts

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#!/bin/sh -e
2# $Id$
3
4if [ "$1" = "install" -o "$1" = "upgrade" ]; then
5        if ! id -g pykota > /dev/null 2>&1 ; then
6                addgroup --system pykota
7        fi
8        if ! id -u pykota > /dev/null 2>&1 ; then
9                adduser --system --home /etc/pykota --ingroup pykota pykota
10                chsh -s /bin/sh pykota
11        fi
12fi
13
14exit 0
Note: See TracBrowser for help on using the browser.