mirror of
https://git.valherun.com/valherun/pxe_boot_alma.git
synced 2026-10-15 22:22:03 -04:00
- restructure boot/kickstarts/scripts/docs into homelab/ - docs: alma9->10 breaking changes, CIS hardening, kickstart changes - add find_cron_entries.sh helper and codex running memory notes Co-Authored-By: Claude Fable 5 <[email protected]>
19 lines
529 B
Bash
19 lines
529 B
Bash
#echo "Openning up syslog log files"
|
|
#for L in $(perl -ne '/(\/var\/log[^{]+)/g && print "$1\n"' /etc/logrotate.d/rsyslog); do [ -f $L ] && chmod 644 $L; done
|
|
|
|
echo "Restoring context"
|
|
restorecon -FR /
|
|
|
|
if [ -x /sbin/aide ]; then
|
|
|
|
echo "Creating initial aide reference db"
|
|
/usr/sbin/aide --init --verbose=2
|
|
mv -f /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
|
|
install -o noc -g noc -m 600 /var/lib/aide/aide.db.gz /opt/iglass/sync/backup/aide-${HOST}.db.gz
|
|
|
|
else
|
|
echo "No aide package found"
|
|
fi
|
|
|
|
Continue
|