/etc -> SYSCONFDIR

This commit is contained in:
danh 2001-02-13 00:48:51 +00:00
parent c90852b537
commit 2c54a7d5b2

View File

@ -1,21 +1,26 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2000/08/29 16:47:01 danh Exp $
# $OpenBSD: DEINSTALL,v 1.3 2001/02/13 00:48:51 danh Exp $
do-deinstall ()
{
set -e
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
PREFIX="${PKG_PREFIX:-/usr/local}"
CONFIG_DIR="${SYSCONFDIR}/raddb"
if [ -d ${CONFIG_DIR} -o -d /var/log/radacct ]; then
echo
echo "+---------------"
echo "| If you do not plan on re-installing this package and have"
echo "| no more use for the previous configuration or data, then"
echo "| the following may safely be deleted:"
echo "|"
if [ -d /etc/raddb ]; then
echo "| /etc/raddb"
if [ -d ${CONFIG_DIR} ]; then
echo "| ${CONFIG_DIR}"
fi
if [ -d /var/log/radacct ]; then
echo "| /var/log/radacct"
fi
echo "+---------------"
}
echo
fi
[ -d /etc/raddb -o -d /var/log/radacct ] && do-deinstall
exit 0