diff --git a/config/hooks/live/9999_yyyy_logrotate.chroot b/config/hooks/live/9999_yyyy_logrotate.chroot index e693790..39ce553 100644 --- a/config/hooks/live/9999_yyyy_logrotate.chroot +++ b/config/hooks/live/9999_yyyy_logrotate.chroot @@ -14,13 +14,29 @@ set -Ceuo pipefail printf "\e[95m++++ ++++ ++++ ++++ ++++ ++++ ++ 🧪 '%s' starting ... \e[0m\n" "${0}" ### Declare Arrays, HashMaps, and Variables. -declare -ar ary_logrotate=( "alternatives" "apt" "btmp" "chrony" "dpkg" "fail2ban" "rkhunter" "ufw" "unattended-upgrades" "usbguard") +declare -ar ary_logrotate=( + "alternatives" + "apt" + "btmp" + "chrony" + "clamav-daemon" + "clamav-freshclam" + "dpkg" + "fail2ban" + "rkhunter" + "rsnapshot" + "ufw" + "unattended-upgrades" + "usbguard" + "wtmp" +) + declare var_file="" var_log="" [[ -r /root/ciss_xdg_tmp.sh ]] && . /root/ciss_xdg_tmp.sh export DEBIAN_FRONTEND="noninteractive" for var_log in "${ary_logrotate[@]}"; do - var_file="$/etc/logrotate.d/${var_log}" + var_file="/etc/logrotate.d/${var_log}" [[ -e "${var_file}" ]] || continue ### Replace leading 'monthly'/'weekly' directives with 'daily', preserving indentation and trailing comments. sed -E -i \ diff --git a/scripts/9999-cdi-starter b/scripts/9999-cdi-starter index fa969ba..5409153 100644 --- a/scripts/9999-cdi-starter +++ b/scripts/9999-cdi-starter @@ -50,7 +50,7 @@ readonly -f sysp ####################################### # Main autostart function. # Arguments: -# none +# None ####################################### main() { declare -r repo_url="https://git.coresecret.dev/msw/CISS.debian.installer.git"