Proyecto

General

Perfil

#!/bin/sh

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 $FICHERO $RUTA/$FICHERO?format=raw

chmod +x $FICHERO
mv $FICHERO /etc/init.d/

#update-rc.d $FICHERO defaults (nivel 20)
update-rc.d -f $FICHERO remove 2>&1 /dev/null
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 $FICHERO $RUTA/$FICHERO?format=raw
cp $FICHERO > /etc/network/deny_https.ies

/etc/init.d/deny_https start

(3-3/5)