Line 0
Link Here
|
|
|
1 |
--- installer.sh.orig Sun Jul 25 16:20:28 2004 |
2 |
+++ installer.sh Sun Jul 25 17:19:48 2004 |
3 |
@@ -69,6 +69,7 @@ |
4 |
;; |
5 |
*) |
6 |
echo "Wrong parameter" |
7 |
+ exit |
8 |
;; |
9 |
esac |
10 |
shift |
11 |
@@ -111,21 +112,18 @@ |
12 |
overwrite:check_port.pl:/scripts/check_port.pl:Portscanner |
13 |
overwrite:filehashmd5.pl:/scripts/filehashmd5.pl:MD5%%Digest%%generator |
14 |
overwrite:filehashsha1.pl:/scripts/filehashsha1.pl:SHA1%%Digest%%generator |
15 |
-verwrite:showfiles.pl:/scripts/showfiles.pl:Directory%%viewer |
16 |
+overwrite:showfiles.pl:/scripts/showfiles.pl:Directory%%viewer |
17 |
overwrite:backdoorports.dat:/db/backdoorports.dat:Database%%Backdoor%%ports |
18 |
overwrite:mirrors.dat:/db/mirrors.dat:Database%%Update%%mirrors |
19 |
overwrite:os.dat:/db/os.dat:Database%%Operating%%Systems |
20 |
overwrite:defaulthashes.dat:/db/defaulthashes.dat:Database%%Default%%file%%hashes |
21 |
overwrite:md5blacklist.dat:/db/md5blacklist.dat:Database%%MD5%%blacklisted%%files |
22 |
-overwrite:CHANGELOG:/docs/CHANGELOG:Changelog |
23 |
-overwrite:README:/docs/README:Readme%%and%%FAQ |
24 |
-overwrite:WISHLIST:/docs/WISHLIST:Wishlist%%and%%TODO |
25 |
" |
26 |
|
27 |
# Prefix: INSTALLDIR |
28 |
INSTALLFILES2=" |
29 |
-overwrite:rkhunter.conf:/usr/local/etc/rkhunter.conf:RK%%Hunter%%configuration%%file |
30 |
-overwrite:rkhunter:/usr/local/bin/rkhunter:RK%%Hunter%%binary |
31 |
+overwrite:rkhunter.conf:/etc/rkhunter.conf.sample:RK%%Hunter%%configuration%%file |
32 |
+overwrite:rkhunter:/bin/rkhunter:RK%%Hunter%%binary |
33 |
" |
34 |
|
35 |
# Create directories (only if they do not exist) |
36 |
@@ -134,10 +132,7 @@ |
37 |
${INSTALLDIR}/etc |
38 |
${INSTALLDIR}/bin |
39 |
${INSTALLDIR}/lib/rkhunter/db |
40 |
-${INSTALLDIR}/lib/rkhunter/docs |
41 |
${INSTALLDIR}/lib/rkhunter/scripts |
42 |
-${INSTALLDIR}/lib/rkhunter/tmp |
43 |
-/usr/local/etc |
44 |
" |
45 |
|
46 |
CHECKDIR="/usr/local" |
47 |
@@ -345,8 +340,6 @@ |
48 |
|
49 |
|
50 |
# Clean active window |
51 |
-clear |
52 |
- |
53 |
echo "${INSTALLER_NAME} ${INSTALLER_VERSION} (${INSTALLER_COPYRIGHT})" |
54 |
echo $ECHOOPT "---------------" |
55 |
echo "Starting installation/update" |
56 |
@@ -467,7 +460,7 @@ |
57 |
if [ -f ${INSTALLPREFIX}${CURFILE} ] |
58 |
then |
59 |
#error redirection in .rkhunter it's just for a clear display if user run not as root |
60 |
- cp -f ${INSTALLPREFIX}${CURFILE} ${NEWFILE} 2> ~/.rkhunter.log |
61 |
+ cp -f ${INSTALLPREFIX}${CURFILE} "${INSTALLDIR}/${NEWFILE}" 2> ~/.rkhunter.log |
62 |
if [ $? -eq 0 ] |
63 |
then |
64 |
echo $E "OK" |
65 |
@@ -482,10 +475,10 @@ |
66 |
|
67 |
done |
68 |
|
69 |
-INSTALLDIRCHECK=`cat /usr/local/etc/rkhunter.conf | grep "INSTALLDIR="` |
70 |
+INSTALLDIRCHECK=`cat $INSTALLDIR/etc/rkhunter.conf.sample | grep "INSTALLDIR="` |
71 |
if [ "${INSTALLDIRCHECK}" = "" ] |
72 |
then |
73 |
- echo "INSTALLDIR=${INSTALLDIR}" >> /usr/local/etc/rkhunter.conf |
74 |
+ echo "INSTALLDIR=${INSTALLDIR}" >> $INSTALLDIR/etc/rkhunter.conf.sample |
75 |
echo "Configuration updated with installation path (${INSTALLDIR})" |
76 |
else |
77 |
echo "Configuration already updated." |
78 |
@@ -495,7 +488,7 @@ |
79 |
then |
80 |
echo "" |
81 |
echo $E "$t17" |
82 |
- echo "$t18 (/usr/local/bin/rkhunter)" |
83 |
+ echo "$t18 (${INSTALLDIR}/bin/rkhunter)" |
84 |
else |
85 |
echo "" |
86 |
echo $E "$t19" |