Fix the backup files permissions before exiting.

This commit is contained in:
Andrea Dell'Amico 2018-04-09 13:17:04 +02:00
parent 3bc6406f44
commit bdd0f79252
1 changed files with 4 additions and 1 deletions

View File

@ -99,7 +99,9 @@ write_nagios_data() {
fi
}
fix_backup_permissions() {
chmod -R u+rwX,g-rwx,o-rwx ${HISTDIR}
}
########
#
# Main
@ -137,6 +139,7 @@ else
fi
fi
fix_backup_permissions
cleanup_old_backups
exit $RETVAL