Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1486 2014-11-13 11:15:17Z richard $
|
2 |
# $Id: alcasar.sh 1488 2014-11-16 23:10:57Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
|
5 |
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
Line 466... |
Line 466... |
466 |
echo "PRIVATE_IP=$PRIVATE_IP_MASK" >> $CONF_FILE
|
466 |
echo "PRIVATE_IP=$PRIVATE_IP_MASK" >> $CONF_FILE
|
467 |
echo "DHCP=on" >> $CONF_FILE
|
467 |
echo "DHCP=on" >> $CONF_FILE
|
468 |
echo "EXT_DHCP_IP=none" >> $CONF_FILE
|
468 |
echo "EXT_DHCP_IP=none" >> $CONF_FILE
|
469 |
echo "RELAY_DHCP_IP=none" >> $CONF_FILE
|
469 |
echo "RELAY_DHCP_IP=none" >> $CONF_FILE
|
470 |
echo "RELAY_DHCP_PORT=none" >> $CONF_FILE
|
470 |
echo "RELAY_DHCP_PORT=none" >> $CONF_FILE
|
- |
|
471 |
echo "PROTOCOLS_FILTERING=off" >> $CONF_FILE
|
471 |
[ -e /etc/sysconfig/network.default ] || cp /etc/sysconfig/network /etc/sysconfig/network.default
|
472 |
[ -e /etc/sysconfig/network.default ] || cp /etc/sysconfig/network /etc/sysconfig/network.default
|
472 |
# config network
|
473 |
# config network
|
473 |
cat <<EOF > /etc/sysconfig/network
|
474 |
cat <<EOF > /etc/sysconfig/network
|
474 |
NETWORKING=yes
|
475 |
NETWORKING=yes
|
475 |
HOSTNAME="$HOSTNAME.$DOMAIN"
|
476 |
HOSTNAME="$HOSTNAME.$DOMAIN"
|
Line 1269... |
Line 1270... |
1269 |
then
|
1270 |
then
|
1270 |
userdel -r tinyproxy 2>/dev/null
|
1271 |
userdel -r tinyproxy 2>/dev/null
|
1271 |
groupdel tinyproxy 2>/dev/null
|
1272 |
groupdel tinyproxy 2>/dev/null
|
1272 |
fi
|
1273 |
fi
|
1273 |
groupadd -f tinyproxy
|
1274 |
groupadd -f tinyproxy
|
1274 |
useradd -r -g tinyproxy -s /bin/false -c "system user for tinyproxy" havp
|
1275 |
useradd -r -g tinyproxy -s /bin/false -c "system user for tinyproxy" tinyproxy
|
1275 |
mkdir -p /var/log/tinyproxy /var/run/tinyproxy
|
1276 |
mkdir -p /var/log/tinyproxy /var/run/tinyproxy
|
1276 |
chown -R tinyproxy:tinyproxy /var/log/tinyproxy /var/run/tinyproxy
|
1277 |
chown -R tinyproxy:tinyproxy /var/log/tinyproxy /var/run/tinyproxy
|
1277 |
[ -e /etc/tinyproxy/tinyproxy.conf.default ] || cp /etc/tinyproxy/tinyproxy.conf /etc/tinyproxy/tinyproxy.conf.default
|
1278 |
[ -e /etc/tinyproxy/tinyproxy.conf.default ] || cp /etc/tinyproxy/tinyproxy.conf /etc/tinyproxy/tinyproxy.conf.default
|
1278 |
$SED "s?^User.*?User tinyproxy?g" /etc/tinyproxy/tinyproxy.conf
|
1279 |
$SED "s?^User.*?User tinyproxy?g" /etc/tinyproxy/tinyproxy.conf
|
1279 |
$SED "s?^Group.*?Group tinyproxy?g" /etc/tinyproxy/tinyproxy.conf
|
1280 |
$SED "s?^Group.*?Group tinyproxy?g" /etc/tinyproxy/tinyproxy.conf
|