Commit 4209464b authored by Vinicius Ruoso's avatar Vinicius Ruoso

Updated prd_version script to identify new prd version

Also, a new state has been added to identify schools in old versions.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 5dd522f4
......@@ -8,25 +8,33 @@ function prd_version_www()
VERSION="$*"
if test "$VERSION" = "NOTEXIST"; then
PSTATETYPE="prd_ajudaremota_ajuda.st:false"
PSTATETYPE="$PSTATETYPE prd_version_noversion.st:true"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1.st:false"
PSTATETYPE="prd_ajudaremota_ajuda_st:false"
PSTATETYPE="$PSTATETYPE prd_version_noversion_st:true"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1_st:false"
PSTATETYPE="$PSTATETYPE prd_version_old_st:false"
PSTATUS=gray
elif grep -q "1\.1" <<< "$VERSION"; then
PSTATETYPE="prd_ajudaremota_ajuda.st:false"
PSTATETYPE="$PSTATETYPE prd_version_noversion.st:false"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1.st:true"
PSTATETYPE="prd_ajudaremota_ajuda_st:false"
PSTATETYPE="$PSTATETYPE prd_version_noversion_st:false"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1_st:true"
PSTATETYPE="$PSTATETYPE prd_version_old_st:false"
PSTATUS=gray
elif test "$VERSION" = "Ajuda Remota"; then
PSTATETYPE="prd_ajudaremota_ajuda.st:true"
PSTATETYPE="$PSTATETYPE prd_version_noversion.st:false"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1.st:false"
PSTATETYPE="prd_ajudaremota_ajuda_st:true"
PSTATETYPE="$PSTATETYPE prd_version_noversion_st:false"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1_st:false"
PSTATETYPE="$PSTATETYPE prd_version_old_st:false"
PSTATUS=gray
else
PSTATETYPE="prd_ajudaremota_ajuda.st:false"
PSTATETYPE="$PSTATETYPE prd_version_noversion.st:false"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1.st:false"
test "$VERSION" != "2.0r2 Quero-quero" && PSTATUS=gray
PSTATETYPE="prd_ajudaremota_ajuda_st:false"
PSTATETYPE="$PSTATETYPE prd_version_noversion_st:false"
PSTATETYPE="$PSTATETYPE prd_version_prd1.1_st:false"
if test "$VERSION" != "3.0 Iguaçu"; then
PSTATUS=gray
PSTATETYPE="$PSTATETYPE prd_version_old_st:true"
else
PSTATETYPE="$PSTATETYPE prd_version_old_st:false"
fi
fi
PVALUE="$VERSION"
......
function prd_version_old.st_getstateinfo()
{
STITLE="Versão antiga do PrD"
SDESCRIPTION="Escolas com versão antiga do PrD"
SDEFCOLUMNS="ID,NRE,Cidade,Escola,Status,Uptime,Versão"
SSUMARY="%d escolas com versão antiga do PrD"
}
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