Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > 6284932f43820ddf51c5024ca190e473 > scriptlet

ez-ipupdate-3.0.11-0.23.b8.fc15.x86_64.rpm

PREIN

/bin/sh
/usr/sbin/groupadd -r ez-ipupd >/dev/null 2>&1 || :
/usr/sbin/useradd -r -M -d /var/cache/ez-ipupdate -g ez-ipupd \
  -s /sbin/nologin -c "Dynamic DNS Client" ez-ipupd >/dev/null 2>&1 || :

PREUN

/bin/sh
if [ $1 -eq 0 ] ; then
  /etc/rc.d/init.d/ez-ipupdate stop >/dev/null 2>&1 || :
  /sbin/chkconfig --del ez-ipupdate
fi

POSTIN

/bin/sh
/sbin/chkconfig --add ez-ipupdate
# move config file from old location to new if it exists
if [ $1 -gt 1 ]; then
    [ -f /etc/ez-ipupdate.conf ] && /bin/mv /etc/ez-ipupdate.conf /etc/ez-ipupdate/default.conf
    [ -f /var/run/ez-ipupdate/ez-ipupdate.pid ] && /bin/mv /var/run/ez-ipupdate/ez-ipupdate.pid /var/run/ez-ipupdate/default.pid
    [ -f /var/lock/subsys/ez-ipupdate ] && /bin/mv /var/lock/subsys/ez-ipupdate /var/lock/subsys/ez-ipupdate-default
    /etc/rc.d/init.d/ez-ipupdate condrestart >/dev/null
fi