Projet

Général

Profil

Télécharger (734 octets) Statistiques
| Branche: | Tag: | Révision:

root / debian / postinst @ 01bf475f

1
#! /bin/sh
2

    
3
set -e
4

    
5
NAME=wcs-auquotidien
6
WCS_USER=wcs-au-quotidien
7
CONFIG_FILE=/etc/wcs/wcs-au-quotidien.cfg
8

    
9
# Read config file if it is present.
10
if [ -r /etc/default/$NAME ]
11
then
12
	. /etc/default/$NAME
13
fi
14

    
15
case "$1" in
16
  configure)
17
    if ! getent passwd wcs-au-quotidien >/dev/null; then
18
      adduser --disabled-password  --quiet --system \
19
        --home /var/lib/wcs-au-quotidien --no-create-home\
20
        --gecos "w.c.s. Au quotidien" --group wcs-au-quotidien
21
      chown wcs-au-quotidien: /var/lib/wcs-au-quotidien
22
    fi
23
    adduser --quiet wcs-au-quotidien wcs
24
  ;;
25
  abort-upgrade|abort-remove|abort-deconfigure)
26
  ;;
27
  *)
28
    echo "postinst called with unknown argument \`$1'" >&2
29
    exit 1
30
  ;;
31
esac
32

    
33
#DEBHELPER#
34

    
35
exit 0
(6-6/11)