Commit 632b16c4 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Added a script to refute undesired versions of PrD

To refute old PrD version, such as 1.1 and 2.0rc*, this script will create
a /etc/nologin file with some instructions and add on /etc/rc2.d to secure
that the nologin file will be there when the system is rebooted.

Also an entry to refute script on autogen.conf has been added to correctly
generate a new Makefile. This entry has been added before prd_ajudaremota
script, which was moved to 002 position.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 242bf4d0
#script name:enabled intervalas;link name
prd_ajudaremota:onconnect.d:001-prd_ajudaremota
prd_refute:onconnect.d:001-prd_refute
prd_ajudaremota:onconnect.d:002-prd_ajudaremota
prd_schoolinfo:onconnect.d:003-prd_schoolinfo
prd_nre:onconnect.d:004-prd_nre
prd_city:onconnect.d:005-prd_city
......
#!/bin/bash
( grep -q "1\.1" /etc/prd_version || grep -q "2\.0rc" /etc/prd_version ) ||
return 0
cat > /etc/nologin <<EOF
Essa escola foi instalada com uma versão muito antiga do Paraná Digital
Por esse motivo, o acesso a usuários nessa escola está sendo desabilitado
Por favor, entre em contato com o NRE para saber procedimentos.
Equipe de desenvolvimento do PrD
EOF
cp /etc/nologin /etc/refuta-prd1.1-nologin
cat > /etc/rc2.d/S01refuta-prd1.1 <<EOF
#!/bin/bash
cp /etc/refuta-prd1.1-nologin /etc/nologin
EOF
chmod a+x /etc/rc2.d/S01refuta-prd1.1
function prd_refute_updatedata()
{
UPDATA="$*"
}
function prd_refute_www()
{
PVALUE="$*"
}
function getcolumninfo()
{
WEBINTERFACE=false
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment