+

Last commit for preinst: d6c00ac81a81a6063a6be16db831ac226729f5eb

Initial commit - commit r2382 from svn

Benjamin Renard [2012-03-26 17:06:26]
Initial commit - commit r2382 from svn
#!/bin/sh -e
# $Id: preinst 3222 2007-07-24 09:59:35Z jerome $

. /usr/share/debconf/confmodule

if [ "$1" = "install" -o "$1" = "upgrade" ]; then
        if ! id -g pykota > /dev/null 2>&1 ; then
                addgroup --system pykota
        fi
        if ! id -u pykota > /dev/null 2>&1 ; then
                adduser --system --home /etc/pykota --ingroup pykota pykota
                chsh -s /bin/sh pykota
        fi
        if [ "$1" = "upgrade" ]; then
                cp -a /etc/pykota/pykota.conf /etc/pykota/pykota.conf.saved 2>/dev/null
                cp -a /etc/pykota/pykotadmin.conf /etc/pykota/pykotadmin.conf.saved 2>/dev/null
        fi
fi

exit 0
ViewGit