Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 579c9d961980f2ce012d6e7564fed354 > scriptlet

ez-ipupdate-3.0.11b8-9mdv2009.1.x86_64.rpm

PREUN

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

POSTIN

/bin/sh
/usr/share/rpm-helper/create-file ez-ipupdate $1 /etc/ez-ipupdate.conf nobody root 600 
if [ ! -s /etc/ez-ipupdate.conf ]; then
cat > /etc/ez-ipupdate.conf << EOF
# example config file for ez-ipupdate
#service-type=dyndns-static
service-type=dyndns
user=login:password
host=somedomain.dyndns.org
interface=eth1
max-interval=2073600

# cache file in the temp directory
cache-file=/tmp/.ez-ipupdate.cache
EOF
fi
/usr/share/rpm-helper/add-service ez-ipupdate $1 ez-ipupdate