rm -rf /etc/.webmin-backup
cp -r /etc/webmin /etc/.webmin-backup
fi
+/bin/true
%post
inetd=`grep "^inetd=" /etc/webmin/miniserv.conf 2>/dev/null | sed -e 's/inetd=//g'`
echo "Webmin install complete. You can now login to http://\$host:\$port/"
fi
echo "as root with your root password."
+/bin/true
%preun
if [ "\$1" = 0 ]; then
(cd /usr/libexec/webmin ; WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin LANG= /usr/libexec/webmin/run-uninstalls.pl)
/etc/init.d/webmin stop >/dev/null 2>&1 </dev/null
/etc/webmin/stop >/dev/null 2>&1 </dev/null
- /bin/true
fi
fi
+/bin/true
%postun
if [ "\$1" = 0 ]; then
rm -rf /etc/webmin /var/webmin
fi
fi
+/bin/true
%triggerpostun -- webmin
if [ ! -d /var/webmin -a "\$1" = 2 ]; then
else
rm -rf /etc/.webmin-backup
fi
+/bin/true
EOF
close(SPEC);