Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > df988bcef789e292306b6d437862afd0 > scriptlet

ez-ipupdate-3.0.11b8-11mdv2010.1.i586.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