blob: 253a3f2b2ebcef8e83805f942332278f06165331 (
plain) (
blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
$FreeBSD$
--- setup.sh.orig Sun Nov 10 15:32:27 2002
+++ setup.sh Sun Nov 10 15:32:34 2002
@@ -48,12 +48,12 @@
echo "Unless you want to run multiple versions of Usermin at the same time"
echo "you can just accept the defaults."
echo ""
-printf "Config file directory [/etc/usermin]: "
+printf "Config file directory [!!PREFIX!!/etc/usermin]: "
if [ "$config_dir" = "" ]; then
read config_dir
fi
if [ "$config_dir" = "" ]; then
- config_dir=/etc/usermin
+ config_dir=!!PREFIX!!/etc/usermin
fi
abspath=`echo $config_dir | grep "^/"`
if [ "$abspath" = "" ]; then
@@ -138,19 +138,19 @@
else
# Config directory exists .. make sure it is not in use
ls $config_dir | grep -v rpmsave >/dev/null 2>&1
- if [ "$?" = "0" -a "$config_dir" != "/etc/usermin" ]; then
+ if [ "$?" = "0" -a "$config_dir" != "!!PREFIX!!/etc/usermin" ]; then
echo "ERROR: Config directory $config_dir is not empty"
echo ""
exit 2
fi
# Ask for log directory
- printf "Log file directory [/var/usermin]: "
+ printf "Log file directory [/var/log/usermin]: "
if [ "$var_dir" = "" ]; then
read var_dir
fi
if [ "$var_dir" = "" ]; then
- var_dir=/var/usermin
+ var_dir=/var/log/usermin
fi
abspath=`echo $var_dir | grep "^/"`
if [ "$abspath" = "" ]; then
@@ -178,8 +178,8 @@
echo "Usermin is written entirely in Perl. Please enter the full path to the"
echo "Perl 5 interpreter on your system."
echo ""
- if [ -x /usr/bin/perl ]; then
- perldef=/usr/bin/perl
+ if [ -x !!PERL5!! ]; then
+ perldef=!!PERL5!!
elif [ -x /usr/local/bin/perl ]; then
perldef=/usr/local/bin/perl
else
|