Commit cc22218b authored by Alessandro Elias's avatar Alessandro Elias

Merge branch '4-bug-arrumar-preinst' into 'develop'

Issue #4: Verify before coping

Closes #4

See merge request !23
parents 0df6e704 9cf7ce6e
Pipeline #22324 passed with stages
in 8 minutes and 17 seconds
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