Revision 3222, 0.6 kB
(checked in by jerome, 17 years ago)
|
Permissions again.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
Rev | Line | |
---|
[2110] | 1 | #!/bin/sh -e |
---|
| 2 | # $Id$ |
---|
| 3 | |
---|
[2112] | 4 | . /usr/share/debconf/confmodule |
---|
| 5 | |
---|
[2110] | 6 | if [ "$1" = "install" -o "$1" = "upgrade" ]; then |
---|
| 7 | if ! id -g pykota > /dev/null 2>&1 ; then |
---|
| 8 | addgroup --system pykota |
---|
| 9 | fi |
---|
| 10 | if ! id -u pykota > /dev/null 2>&1 ; then |
---|
| 11 | adduser --system --home /etc/pykota --ingroup pykota pykota |
---|
| 12 | chsh -s /bin/sh pykota |
---|
| 13 | fi |
---|
[2245] | 14 | if [ "$1" = "upgrade" ]; then |
---|
| 15 | cp -a /etc/pykota/pykota.conf /etc/pykota/pykota.conf.saved 2>/dev/null |
---|
| 16 | cp -a /etc/pykota/pykotadmin.conf /etc/pykota/pykotadmin.conf.saved 2>/dev/null |
---|
| 17 | fi |
---|
[2110] | 18 | fi |
---|
| 19 | |
---|
| 20 | exit 0 |
---|