Monotone-Parent: 03c8c1c0221284dc94112f17b3904d59c31d5c94

Monotone-Revision: bc6ce04250c2cbad21bdc2d1f485e5a659478282

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-08-12T19:03:04
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2009-08-12 19:03:04 +00:00
parent 0159e951d1
commit 90fbbd211c
2 changed files with 8 additions and 4 deletions

3
debian/sogo.postrm vendored
View File

@ -19,6 +19,9 @@ case "$1" in
if test "x$1" == "xpurge"
then
userdel -r sogo || true
rm -rf /var/spool/sogo
rm -rf /var/log/sogo
rm -rf /var/run/sogo
fi
;;

9
debian/sogo.preinst vendored
View File

@ -13,16 +13,17 @@ set -e
if test "x$1" == "xinstall" && test -z "$2"
then
if ! id sogo 2> /dev/null; then
if ! id sogo 1> /dev/null 2>&1; then
groupadd -f -K GID_MIN=100 -K GID_MAX=500 sogo
useradd -d /home/sogo -g sogo -m -K UID_MIN=100 -K UID_MAX=500 -K PASS_MAX_DAYS=-1 -s /bin/bash sogo
fi
for dir in run spool log
do
mkdir /var/$dir/sogo
chown sogo:sogo /var/$dir/sogo
chmod 750 /var/$dir/sogo
if ! test -d /var/$dir/sogo
then
install -m 750 -o sogo -g sogo -d /var/$dir/sogo
fi
done
fi