2009-06-03 17:22:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if getent passwd amanda 2>&1 >/dev/null; then
|
|
|
|
userdel amanda
|
|
|
|
fi
|
2009-06-03 17:48:19 +00:00
|
|
|
if getent group backup 2>&1 >/dev/null; then
|
|
|
|
groupdel backup
|
|
|
|
fi
|
2009-06-03 17:22:14 +00:00
|
|
|
|
|
|
|
sed -i -e "/^amandaidx/d" /etc/services
|
|
|
|
sed -i -e "/^amidxtape/d" /etc/services
|
|
|
|
|
|
|
|
crontab -r -u amanda
|
|
|
|
|
|
|
|
rm -r /etc/amandates /var/amanda
|