Commit 9cf7ce6e authored by Matheus Horstmann's avatar Matheus Horstmann 🐴 Committed by Alessandro Elias

Issue #4: Verify before coping

Signed-off-by: Matheus Horstmann's avatarMatheus Horstmann <mch15@inf.ufpr.br>
parent 0df6e704
le-proinfodata (1.1.4) unstable; urgency=medium
* Fix postinst that also requires a second apt install command
-- Matheus Horstmann <lesuporte@c3sl.ufpr.br> Tue
le-proinfodata (1.1.3) unstable; urgency=medium
* Fix preinst that requires a second apt install command
......
......@@ -94,12 +94,16 @@ if test -f "${BACKUP_DIR}/SEED2/client/conf/inep"; then
# Restore the inep and proxy files, and also their backup and md5sum
# counterparts
for FILE in "proxy" "inep"; do
[[ -e "${BACKUP_DIR}/SEED2/.backup/client/conf/${FILE}" ]] && \
cp -af "${BACKUP_DIR}/SEED2/.backup/client/conf/${FILE}" \
"${SEED_MEC_HOME}/SEED2/.backup/client/conf/${FILE}"
[[ -e "${BACKUP_DIR}/SEED2/.md5sum/client/conf/${FILE}" ]] && \
cp -af "${BACKUP_DIR}/SEED2/.md5sum/client/conf/${FILE}" \
"${SEED_MEC_HOME}/SEED2/.md5sum/client/conf/${FILE}"
[[ -e "${BACKUP_DIR}/SEED2/.md5sum/.backup/client/conf/${FILE}" ]] && \
cp -af "${BACKUP_DIR}/SEED2/.md5sum/.backup/client/conf/${FILE}" \
"${SEED_MEC_HOME}/SEED2/.md5sum/.backup/client/conf/${FILE}"
[[ -e "${BACKUP_DIR}/SEED2/client/conf/${FILE}" ]] && \
cp -af "${BACKUP_DIR}/SEED2/client/conf/${FILE}" \
"${SEED_MEC_HOME}/SEED2/client/conf/${FILE}"
done
......
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