Commit bebf0503 authored by Diego Pasqualin's avatar Diego Pasqualin

le-proinfodata: dialog_inep.sh, remove trailing whitespaces

Signed-off-by: 's avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent c516ccd6
......@@ -34,7 +34,7 @@ function verifica_inep() {
fi
#Start progress bar
(while [ $i -lt 100 ]; do
echo $i
echo $i
sleep 1
i=$((i+30))
done)| zenity --progress --title="INEP" --text="Verificando inep digitado..." --percentage=0 --no-cancel --auto-close --width=600 --height=100
......@@ -43,16 +43,16 @@ function verifica_inep() {
#Check INEP is valid and correct
zenity --list --title="INEP" --text="Essas informações estão corretas?" --cancel-label="Não" --ok-label="Sim" --width=600 --height=200 --column="Inep" --column="Estado" --column="Municipio" --column="Cep" --column="Escola" $info1 $info2 $info3 $info5 "$info4"
if [ $? -eq 0 ];then
echo $info1 > $2
echo $info1 > $2
return 0
else
else
#Check INEP is valid but not correct
return 1
fi
else
else
#Check INEP is invalid
zenity --warning --title="INEP" --text="O INEP fornecido é inválido. Por favor verifique o número INEP correspondente a sua instituição de ensino e tente novamente ou digite $frase" --width=600 --height=100
return 1
return 1
fi
}
frase="\"quero digitar o inep da minha escola depois\""
......@@ -67,7 +67,7 @@ MD5BACKUPF_INEP="${SEED_HOME}/SEED2/.md5sum/.backup/client/conf/inep"
F_PROXY="${SEED_HOME}/SEED2/client/conf/proxy"
MD5F_PROXY="${SEED_HOME}/SEED2/.md5sum/client/conf/proxy"
BACKUPF_PROXY="${SEED_HOME}/SEED2/.backup/client/conf/proxy"
MD5BACKUPF_PROXY="${SEED_HOME}/SEED2/.md5sum/.backup/client/conf/proxy"
MD5BACKUPF_PROXY="${SEED_HOME}/SEED2/.md5sum/.backup/client/conf/proxy"
# LE ZONE
le_zone="/etc/le-proinfodata/le.zone"
if [ $valido -eq 0 ]; then
......@@ -94,11 +94,11 @@ if [ $valido -eq 0 ]; then
#Configure Proxy
if [ $? -eq 0 ];then
proxy_ok=0
while [ $proxy_ok -eq 0 ]; do
while [ $proxy_ok -eq 0 ]; do
proxy=`zenity --forms --title="PROXY" --text="Preencha as informações de proxy:" --add-entry="Host" --add-entry="Porta" --add-entry="Usuario" --cancel-label="Cancelar"`
if [ $? -eq 1 ];then
zenity --info --title="INEP" --text="Processo concluido!"
exit
exit
fi
host=`echo $proxy | cut -d"|" -f1`
port=`echo $proxy | cut -d"|" -f2`
......@@ -112,10 +112,10 @@ if [ $valido -eq 0 ]; then
if [ $password_y_n -eq 0 ]; then
password_ok=0
while [ $password_ok -eq 0 ]; do
passwords=`zenity --title="PROXY" --forms --text="Digite a senha" --add-password="Digite a senha" --add-password="Confirme a senha" --cancel-label="Cancelar"`
passwords=`zenity --title="PROXY" --forms --text="Digite a senha" --add-password="Digite a senha" --add-password="Confirme a senha" --cancel-label="Cancelar"`
password=`echo $passwords | cut -d"|" -f1`
password_conf=`echo $passwords | cut -d"|" -f2`
echo "PASS "$passwords "P1 "$password "P2 "$password_conf
echo "PASS "$passwords "P1 "$password "P2 "$password_conf
if [ $password = $password_conf ]; then
echo "ppasswd="$password >> $F_PROXY
password_ok=1
......@@ -135,9 +135,9 @@ if [ $valido -eq 0 ]; then
zenity --info --title="INEP" --text="Processo concluido!"
else
inep=`zenity --entry --title="INEP" --text="Digite seu INEP ou a mensagem: $frase" --width=600 --height=100 --cancel-label="Cancelar" `
fi
fi
else
inep=`zenity --entry --title="INEP" --text="Digite seu INEP ou a mensagem: $frase" --width=600 --height=100 --cancel-label="Cancelar"`
fi
fi
......@@ -150,7 +150,7 @@ md5sum ${F_PROXY} | cut -d' ' -f1 > ${MD5F_PROXY}
# Backup the files
cp ${F_INEP} ${BACKUPF_INEP}
cp ${F_PROXY} ${BACKUPF_PROXY}
cp ${MD5F_INEP} ${MD5BACKUPF_INEP}
cp ${MD5F_INEP} ${MD5BACKUPF_INEP}
cp ${MD5F_PROXY} ${MD5BACKUPF_PROXY}
chown seed_mec:seed_mec ${F_INEP}
......
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