6b36b7e80e
news sites PR: ports/89243 Submitted by: Ondra Koutek <koutek@o-k.cz>
21 lines
521 B
Bash
21 lines
521 B
Bash
#! /bin/sh
|
|
#
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin
|
|
|
|
case $2 in
|
|
|
|
DEINSTALL)
|
|
echo "---> Starting deinstall script:"
|
|
|
|
if /usr/bin/crontab -u root -l | \
|
|
/usr/bin/diff - %%PREFIX%%/campsite/etc/crontab.in >/dev/null 2>&1 ; then
|
|
echo "---> Zeroing crontab for \"root\""
|
|
/usr/bin/crontab -u root /dev/null
|
|
else
|
|
echo "---> Crontab for \"root\" not removed: please deinstall"
|
|
echo "---> manually if you no-longer wish to use Campsite. eg:"
|
|
echo "---> /usr/bin/crontab -u root -r"
|
|
fi
|
|
|
|
esac
|