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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
# Squidtaild install script version 0.0.4
# 9 March - Stefan Folkerts -
echo ""
echo "Squidtaild installer version 0.0.4 -March 9 2000-"
echo "Pressing enter will give you default [ ] values"
echo "This will install Squidtaild Version 2.1a6"
echo ""
echo -n "Please enter directory to install the squidtail in [/usr/sbin] :"
read install
if [ "$install" = "" ]
then
cp sbin/squidtaild /usr/sbin/
echo ""
if [ -e "/usr/sbin/squidtaild" ]
then
echo " * Squidtaild copied *"
else
echo "-ERROR- Squidtaild program NOT in place!!!!"
fi
echo ""
else
cp sbin/squidtaild "$install"/squidtaild
echo ""
if [ -e ""$install"/squidtaild" ]
then
echo "Squidtaild copied..."
else
echo "-ERROR- Squidtaild program NOT in place!!!!"
echo ""
fi
fi
echo -n "Enter directory to install startup-script in [/etc/rc.d/init.d] :"
read startup
if [ "$startup" = "" ]
then
cp startup-script/* /etc/rc.d/init.d/
if [ -e "/etc/rc.d/init.d/squidtaild" ]
then
echo ""
echo " * Squidtaild init.d file copied *"
else
echo ""
echo "-ERROR- squidtaild init.d file not in place!!!"
fi
echo ""
else
cp startup-script/* "$startup"
if [ -e ""$startup"/squidtaild" ]
then
echo ""
echo " * Squidtaild init.d file copied *"
else
echo ""
echo "-ERROR- squidtaild init.d file not in place!!!"
fi
echo ""
fi
echo "Installing Squidtaild configuration files into /etc/squidtaild"
if [ -d /etc/squidtaild ]
then
echo "Directory /etc/squidtaild exists, transfering files to directory."
echo ""
cp -rf config/squidtaild/* /etc/squidtaild/
else
mkdir /etc/squidtaild
cp -rf config/squidtaild/* /etc/squidtaild/
fi
echo "Testing if squitaild configuration files are in place.."
echo ""
if [ -e "/etc/squidtaild/squidtaild.conf" ]
then
echo " * Squidtaild.conf file in place *"
if [ -d "/etc/squidtaild/filters" ]
then
echo ""
echo " * Squidtaild filters directory is in place *"
else
echo "-ERROR- Squidtaild filters directory is NOT in place!!!"
fi
else
echo "-ERROR- squidtaild.conf file NOT in /etc/squidtaild dir!"
fi
echo ""
echo "Installing Config Reader"
cd perl_modules/ConfigReader-Simple-0.5
perl Makefile.PL
make
make test
make install
echo "Done.."
echo ""
echo "This should be all, it's time to configurate"
echo "(Or press CTRL-BREAK to abort now)"
sleep 4
vi /etc/squidtaild/squidtaild.conf
|