Fix the backup files permissions before exiting.
This commit is contained in:
parent
3bc6406f44
commit
bdd0f79252
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue