root/limitar-https/trunk/deny_https.sh @ 197
16 | antoniojas | #!/bin/sh
|
|
20 | antoniojas | RUTA=http://desarrollo.educarex.es/linex/projects/servidoressecundaria/repository/entry/limitar-https/trunk/
|
|
16 | antoniojas | FICHERO=deny_https
|
|
# Descarga el script para tratar el tráfico https en los IES
|
|||
20 | antoniojas | wget -q -O $FICHERO $RUTA/$FICHERO?format=raw
|
|
16 | antoniojas | ||
chmod +x $FICHERO
|
|||
mv $FICHERO /etc/init.d/
|
|||
#update-rc.d $FICHERO defaults (nivel 20)
|
|||
28 | antoniojas | #if [ -e /etc/init.d/deny_https ] && [ -e /etc/rc2.d/S99deny_https ]; then
|
|
# update-rc.d -f $FICHERO remove 2>&1 /dev/null
|
|||
#fi
|
|||
16 | antoniojas | ||
25 | antoniojas | update-rc.d $FICHERO start 31 2 3 4 5 . stop 31 0 1 6 .
|
|
20 | antoniojas | # Descarga el fichero con webs iniciales a cortar
|
|
FICHERO=deny_https.all
|
|||
22 | antoniojas | wget -q -O $FICHERO $RUTA/$FICHERO?format=raw
|
|
24 | antoniojas | if [ -e $FICHERO ]; then
|
|
cp $FICHERO /etc/network/deny_https.ies
|
|||
fi
|
|||
20 | antoniojas | ||
23 | antoniojas | /etc/init.d/deny_https start
|