le-proinfodata: test whether files exists before using them

Signed-off-by: default avatarDiego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 0ccde5fc
Package: le-proinfodata
Version: 1.2.34
Version: 1.2.35
Maintainer: <proinfodata@c3sl.ufpr.br>
Architecture: i386
Section: main
......@@ -26,10 +26,10 @@ BACKUP_DIR="/opt/seed_mec_backup"
# Descompressing the local base
bunzip2 -f $LBFILE
[[ -f $LBFILE ]] && bunzip2 -f $LBFILE
# Install the PROINFODATA agent
bash /tmp/agent.run
[[ -f /tmp/agent.run ]] && bash /tmp/agent.run
# Check if there is a backup for the inep and proxy files and restore it
if test -f "${BACKUP_DIR}/SEED2/client/conf/inep"; then
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