mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
squid: Add french and spanish errorpages.
reworked ipfire design pages by using stylesheets.
This commit is contained in:
@@ -7,12 +7,13 @@
|
||||
chown -R squid:squid /var/log/squid
|
||||
chown -R squid:squid /var/log/squidGuard
|
||||
|
||||
|
||||
transparent() {
|
||||
DEVICE=$1
|
||||
|
||||
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/proxy/settings)
|
||||
|
||||
|
||||
# If the proxy port is not set we set the default to 800.
|
||||
if [ -z $PROXY_PORT ]; then
|
||||
PROXY_PORT=800
|
||||
@@ -55,14 +56,22 @@ case "$1" in
|
||||
evaluate_retval
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/proxy/advanced/settings)
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
|
||||
|
||||
if [ -e /var/ipfire/proxy/enable -o -e /var/ipfire/proxy/enable_blue ]; then
|
||||
|
||||
# Add Address to errorpage stylesheet
|
||||
sed "s|XXXhostXXX|$GREEN_ADDRESS|g" /var/ipfire/proxy/errorpage-$ERR_DESIGN.css > \
|
||||
/etc/squid/errorpage.css
|
||||
|
||||
boot_mesg "Starting Squid Proxy Server..."
|
||||
loadproc /usr/sbin/squid -z >/dev/null 2>&1
|
||||
loadproc /usr/sbin/squid
|
||||
fi
|
||||
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
|
||||
|
||||
if [ -e /var/ipfire/proxy/transparent ]; then
|
||||
transparent $GREEN_DEV
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user