Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release > by-pkgid > 2d2ab1f6251480cef2a0ce19d67e82ae > scriptlet

echelog-0.6.3-2mdk.x86_64.rpm

PREIN

/bin/sh
# add group echelog if not found
grep -q ^echelog: /etc/group || {
    groupadd -r echelog || {
       echo "ERROR: Can't add group echelog, aborting install" >&2
       exit 1
    }
}

# add user echelog if not found
grep -q ^echelog: /etc/passwd || {
   useradd -d /var/cache/echelog -g echelog -M -r echelog || {
       echo "ERROR: Can't add user echelog, aborting install" >&2
       exit 1
    }
}

# add user echelogc (Echelog admin) if not found
grep -q ^echelogc: /etc/passwd || {
   useradd echelogc || {
       echo "ERROR: Can't add user echelogc, aborting install" >&2
       exit 1
    }
}

PREUN

/bin/sh
/usr/share/rpm-helper/del-service echelog $1 echelog

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service echelog $1 echelog 
if [ "$1" = 1 -o ! -f /etc/echelog/install.state ] ; then
echo 
echo "Run ./setup-wizard.sh in /usr/share/doc/echelog-0.6.3/ directory"
echo
fi