Zaciatocnik instaluje squid
Silhavy, Peter
silhavy_p at punchtrnava.sk
Wed Dec 19 15:25:37 CET 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Zdravim konferenciu,
Chcem poprosit niekoho kto instalaciu squid-u preluskal o pomoc.
Stiahol som si binarnu distribuciu tohoto softu a neviem ako to
nainstalovat. Balik obsahuje jediny "shell script" a ten mi hlasi
"unexpected argument". Skript ako taky mi nic nehovori ...
Ak skusam:
./+INSTALL squid-2.4_6 PRE-INSTALL
Nedeje sa nic ...
./+INSTALL squid-2.4_6 POST-INSTALL
Otvori sa mi vo "vi" prazdny file co predpokladam znamena, ze sa
konfigurak nenachadza tam kde by mal ...
Prikladam uvedeny skript "+INSTALL":
#!/bin/sh
PKGNAME=$1
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
echo "==> Post-installation configuration of ${PKGNAME}"
echo ""
echo " o you DO need running nameservice to start and run
${PKGNAME}"
echo ""
echo " o use the ${PKGNAME} proxy and caching WWW Server by"
echo " configuring your WWW Navigator (Netscape, Mosaic,...)"
echo " to use it as a proxy server."
echo ""
echo " o Note that before you can run ${PKGNAME} you will"
echo " need to initialise the cache directory."
echo " You can do this by typing \"squid -z\"."
echo ""
echo "==> Press Enter to edit the ${PKGNAME} config file."
echo " (The defaults are reasonable; and the file is well
commented)"
tput md
echo " You'd certainly like to pay attention to the"
echo " ACTUAL locations of cache \"spool\", logfiles, pidfile!"
tput me
if [ -z "${PACKAGE_BUILDING}" ]; then read skip; fi
chown root:wheel ${PREFIX:-/usr/local}/etc/squid/squid.conf*
chmod 644 ${PREFIX:-/usr/local}/etc/squid/squid.conf*
[ -f ${PREFIX:-/usr/local}/etc/squid/squid.conf ] || \
cp -fp ${PREFIX:-/usr/local}/etc/squid/squid.conf.default \
${PREFIX:-/usr/local}/etc/squid/squid.conf
[ -f ${PREFIX:-/usr/local}/etc/squid/mime.conf ] || \
cp -fp ${PREFIX:-/usr/local}/etc/squid/mime.conf.default \
${PREFIX:-/usr/local}/etc/squid/mime.conf
${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid/squid.conf \
${PREFIX:-/usr/local}/etc/squid/mime.conf
;;
*)
echo "Unexpected Argument $2!!!"
exit 1
;;
esac
exit 0
Ako teda poslat binarky na spravne miesto ?
Vopred dakujem za kazdu pomoc,
==================
Peter 'Sheehy' Silhavy
IS Administrator
Punch Products Trnava s.r.o.
Tel.: +421335909122
Fax: +421335502001
alt. email: sheehy at pobox.sk
==================
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPCCjFMpIP7xSuCnjEQLpbwCgglyzLVP6UFkRsHrZvl2JeLLqpXkAn2H6
EPryI5IV8wc3uA9YJysAblrh
=Ke4J
-----END PGP SIGNATURE-----
More information about the Users-l
mailing list