Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > 39a456d27d8bb802f1f45a4c0f55fde4 > scriptlet

netdisco-1.0-2.fc13.noarch.rpm

PREIN

/bin/sh
/bin/mkdir /usr/share/netdisco
/usr/sbin/useradd netdisco -d /usr/share/netdisco/ -s /bin/sh  1>&2 > /dev/null
# apache needs to read /etc/netdisco.conf, but it contains a plain
# text password to the postgresql netdisco database, so the file
# requires stricter file permissions...
/usr/bin/gpasswd -a apache netdisco 1>&2 > /dev/null

PREUN

/bin/sh
if [ "$1" = "0" ]; then
   /sbin/service netdisco stop > /dev/null 2>&1
   /sbin/chkconfig --del netdisco
fi

POSTIN

/bin/sh
   /sbin/chkconfig --add netdisco

POSTUN

/bin/sh
/usr/sbin/userdel netdisco 1>&2 > /dev/null 
/bin/rm -rf /usr/share/netdisco