Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 20

Asegura el fichero general

Ver diferencias:

limitar-https/trunk/deny_https
RED=`ifconfig | grep Bcast | cut -f2 -d: | awk '{print }' | cut -f1 -d.`
#----------------------------------------------------------------------------------------
if [ -s $DENY_HTTPS_ALL ]; then mv $DENY_HTTPS_ALL $DENY_HTTPS_ALL.old; fi
# Descarga el fichero general de https a denegar por todos los IES
wget -q -O $DENY_HTTPS_ALL $RUTA/$FICHERO?format=raw
if [ ! -s $DENY_HTTPS_ALL ]; then
if [ -s $DENY_HTTPS_ALL.old ]; then
cat $DENY_HTTPS_ALL.old >> $DENY_HTTPS_ALL
fi
fi
# Unimos y filtramos los ficheros de configuración
cat $DENY_HTTPS_ALL $DENY_HTTPS_IES | egrep -v '#|^$' | awk '{print $1}' | sort | uniq > $DENY_HTTPS
limitar-https/trunk/deny_https.sh
#!/bin/sh
RUTA=http://desarrollo.educarex.es/linex/projects/servidoressecundaria/repository/entry/limitar-https/tru$
RUTA=http://desarrollo.educarex.es/linex/projects/servidoressecundaria/repository/entry/limitar-https/trunk/
FICHERO=deny_https
# Descarga el script para tratar el tráfico https en los IES
wget -q -O $ $RUTA/$FICHERO?format=raw
wget -q -O $FICHERO $RUTA/$FICHERO?format=raw
chmod +x $FICHERO
mv $FICHERO /etc/init.d/
......
update-rc.d -f $FICHERO remove
update-rc.d $FICHERO start 99 2 3 4 5 . stop 99 0 1 6 .
# Descarga el fichero con webs iniciales a cortar
FICHERO=deny_https.all
wget -q -O $ $RUTA/$FICHERO?format=raw
mv $FICHERO /etc/network/deny_https.ies
/etc/init.d/$FICHERO start

Exportar a: Unified diff