aboutsummaryrefslogtreecommitdiff
path: root/sysutils/froxlor/files/pkg-deinstall.in
blob: 8323a7178a8c8ccd7c0915badd0974bc4a2b8ba2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

if [ "$2" != "POST-DEINSTALL" ]; then
	exit 0
fi

if [ -d %%WWWDIR%% ]; then
	wf=`find %%WWWDIR%% -not -type d | wc -l`

	if [ $wf -ne 0 ]; then
		echo ""
		echo "-------------------------------------------------------"
		echo "Run the following command, if you plan to permanently"
		echo "remove froxlor:"
		echo ""
		echo "  rm -rf %%WWWDIR%%"
		echo "-------------------------------------------------------"
		echo ""
	fi
fi

exit 0