Commit a9e8cc4b authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci

le-askINEP.sh: Modified to create the MD5 of inep and proxy backup files

These files which hold the MD5 summary of the inep and proxy backup files
were not being added alongside the other backup and MD5 summary files.
Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarAryane Ast dos Santos <aras10@c3sl.ufpr.br>
parent 40cb13a6
......@@ -40,11 +40,13 @@ SEED_HOME=/opt/seed_mec
INEPFILE="${SEED_HOME}/SEED2/client/conf/inep"
MD5INEPFILE="${SEED_HOME}/SEED2/.md5sum/client/conf/inep"
BACKUPINEPFILE="${SEED_HOME}/SEED2/.backup/client/conf/inep"
MD5BACKUPINEPFILE="${SEED_HOME}/SEED2/.md5sum/.backup/client/conf/inep"
# Proxy file
PROXYFILE="${SEED_HOME}/SEED2/client/conf/proxy"
MD5PROXYFILE="${SEED_HOME}/SEED2/.md5sum/client/conf/proxy"
BACKUPPROXYFILE="${SEED_HOME}/SEED2/.backup/client/conf/proxy"
MD5BACKUPPROXYFILE="${SEED_HOME}/SEED2/.md5sum/.backup/client/conf/proxy"
# "I'll do it later" message
LATER="quero digitar o inep da minha escola depois"
......@@ -203,6 +205,8 @@ md5sum ${PROXYFILE} | cut -d' ' -f1 > ${MD5PROXYFILE}
# Backup the files
cp ${INEPFILE} ${BACKUPINEPFILE}
cp ${PROXYFILE} ${BACKUPPROXYFILE}
cp ${MD5INEPFILE} ${MD5BACKUPINEPFILE}
cp ${MD5PROXYFILE} ${MD5BACKUPPROXYFILE}
chown seed_mec:seed_mec ${INEPFILE}
chown seed_mec:seed_mec ${PROXYFILE}
......
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