openbsd-ports/misc/amanda/pkg/DEINSTALL-client
naddy 5f445542e2 Update amanda to 2.4.2p2. Overhaul port completely.
Submitted by Tom Schutter <t.schutter@att.net>.
2001-05-12 16:41:08 +00:00

27 lines
564 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL-client,v 1.1 2001/05/12 16:41:09 naddy Exp $
#
# de-installation of amanda
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
if [ $# -ne 2 -o "$2" != "DEINSTALL" ]; then
echo "usage: $0 distname DEINSTALL" >&2
exit 1
fi
if [ -d /var/amanda ]; then
rm -rf /var/amanda
fi
# Don't actually do anything, but let the user know what can be
# done to fully de-install the package
#
if grep -q -E ^amanda\|^amandaidx\|^amidxtape /etc/inetd.conf ; then
echo ""
echo "** Amanda should be removed from /etc/inetd.conf"
fi
exit 0