Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > a73da2256d53e1b53f657d0307373059 > scriptlet

ddclient-3.7.0-2.noarch.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/ddclient ]; then
/sbin/service ddclient stop 1>&2 || :;
fi };	/sbin/chkconfig --del ddclient
fi

POSTIN

/bin/sh
/sbin/chkconfig --add ddclient
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/ddclient ] && . /etc/sysconfig/ddclient
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/ddclient ]; then
/sbin/service ddclient restart 1>&2 || :;
else
echo 'Run "/sbin/service ddclient start" to start ddclient daemon.'
fi
fi };

Triggers

ddclient < 1:3.6.4

/bin/sh
if [ -f /etc/ddclient.conf.rpmsave ]; then
	echo "Moving config to new location /etc/ddclient"
	mv -f /etc/ddclient/ddclient.conf /etc/ddclient/ddclient.conf.rpmnew
	mv -f /etc/ddclient.conf.rpmsave /etc/ddclient/ddclient.conf
	mv -f /etc/ddclient.cache /etc/ddclient.cache.rpmsave
fi