summaryrefslogtreecommitdiff
path: root/sysutils/webmin/patches/patch-aa
blob: 2fb22b0e919843c9028812b32a1931d994f0a432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-aa,v 1.2 2004/07/23 19:47:21 jlam Exp $

--- setup.sh.orig	Wed Jun  2 01:33:09 2004
+++ setup.sh
@@ -419,6 +419,7 @@ else
 	fi
 
 	# Ask whether to run at boot time
+	atboot=0
 	if [ "$atboot" = "" ]; then
 		initsupp=`grep "^os_support=" "$srcdir/init/module.info" | sed -e 's/os_support=//g' | grep $os_type`
 		atboot=0
@@ -535,6 +536,7 @@ EOF
 	fi
 fi
 
+noperlpath=yes
 if [ "$noperlpath" = "" ]; then
 	echo "Inserting path to perl into scripts.."
 	(find "$wadir" -name '*.cgi' -print ; find "$wadir" -name '*.pl' -print) | $perl "$wadir/perlpath.pl" $perl -
@@ -661,8 +663,6 @@ if [ "\$answer" = "y" ]; then
 	$config_dir/stop
 	echo "Running uninstall scripts .."
 	(cd "$wadir" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir LANG= "$wadir/run-uninstalls.pl")
-	echo "Deleting $wadir .."
-	rm -rf "$wadir"
 	echo "Deleting $config_dir .."
 	rm -rf "$config_dir"
 	echo "Done!"