Commit 746a2489 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Fixed .po files to correctly set states

When renamed states files from .st to _st, the .po files haven't been
updated to work with those states.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 4209464b
......@@ -8,31 +8,31 @@ function prd_nobreak_www()
STAT="$*"
if test "$STAT" = "NOTINHOSTS"; then
PSTATETYPE="prd_nobreak_notinhosts.st:true"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault.st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_no.st:false"
PSTATETYPE="prd_nobreak_notinhosts_st:true"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault_st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_no_st:false"
PSTATUS=gray
STAT="FALHA /etc/hosts"
elif test "$STAT" = "NO"; then
PSTATETYPE="prd_nobreak_notinhosts.st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault.st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_no.st:true"
PSTATETYPE="prd_nobreak_notinhosts_st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault_st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_no_st:true"
PSTATUS=red
STAT="AUSENTE"
elif grep -q "NOTDEFAULT" <<< "$STAT"; then
PSTATETYPE="prd_nobreak_notinhosts.st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault.st:true"
PSTATETYPE="$PSTATETYPE prd_nobreak_no.st:false"
PSTATETYPE="prd_nobreak_notinhosts_st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault_st:true"
PSTATETYPE="$PSTATETYPE prd_nobreak_no_st:false"
PSTATUS=gray
IP=$(cut -d+ -f2 <<< "$STAT")
STAT="IP RUIM: $IP"
else
PSTATETYPE="prd_nobreak_notinhosts.st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault.st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_no.st:false"
PSTATETYPE="prd_nobreak_notinhosts_st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_notdefault_st:false"
PSTATETYPE="$PSTATETYPE prd_nobreak_no_st:false"
fi
PVALUE="$STAT"
......
......@@ -23,12 +23,12 @@ function prd_raid_www()
grep -q "NOINFO" <<< "$PVALUE" && NOINFO="true"
grep -q "IOERROR" <<< "$PVALUE" && IOERROR="true"
PSTATETYPE="prd_raid_out.st:$OUT prd_raid_sync.st:$SYNC"
PSTATETYPE="$PSTATETYPE prd_raid_faulty.st:$FAULTY"
PSTATETYPE="$PSTATETYPE prd_raid_misspart.st:$MISSINGPART"
PSTATETYPE="$PSTATETYPE prd_raid_noinfo.st:$NOINFO"
PSTATETYPE="$PSTATETYPE prd_raid_missdisk.st:$MISSINGDISK"
PSTATETYPE="$PSTATETYPE prd_raid_ioerror.st:$IOERROR"
PSTATETYPE="prd_raid_out_st:$OUT prd_raid_sync_st:$SYNC"
PSTATETYPE="$PSTATETYPE prd_raid_faulty_st:$FAULTY"
PSTATETYPE="$PSTATETYPE prd_raid_misspart_st:$MISSINGPART"
PSTATETYPE="$PSTATETYPE prd_raid_noinfo_st:$NOINFO"
PSTATETYPE="$PSTATETYPE prd_raid_missdisk_st:$MISSINGDISK"
PSTATETYPE="$PSTATETYPE prd_raid_ioerror_st:$IOERROR"
if [[ $OUT == "true" || $SYNC == "true" || $FAULTY == "true" || \
$MISSINGPART == "true" || $MISSINGDISK == "true" || \
......
......@@ -8,11 +8,11 @@ function prd_schoolinfo_www()
PVALUE="$*"
if test "$PVALUE" = "NOZONE"; then
PSTATETYPE="prd_schoolinfo_nozone.st:true"
PSTATETYPE="$PSTATETYPE prd_schoolinfo_noinfo.st:false"
PSTATETYPE="prd_schoolinfo_nozone_st:true"
PSTATETYPE="$PSTATETYPE prd_schoolinfo_noinfo_st:false"
else
PSTATETYPE="prd_schoolinfo_nozone.st:false"
PSTATETYPE="$PSTATETYPE prd_schoolinfo_noinfo.st:true"
PSTATETYPE="prd_schoolinfo_nozone_st:false"
PSTATETYPE="$PSTATETYPE prd_schoolinfo_noinfo_st:true"
fi
}
......
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