V8.13.192.2025.10.18
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m47s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m47s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -14,13 +14,29 @@ set -Ceuo pipefail
|
|||||||
printf "\e[95m++++ ++++ ++++ ++++ ++++ ++++ ++ 🧪 '%s' starting ... \e[0m\n" "${0}"
|
printf "\e[95m++++ ++++ ++++ ++++ ++++ ++++ ++ 🧪 '%s' starting ... \e[0m\n" "${0}"
|
||||||
|
|
||||||
### Declare Arrays, HashMaps, and Variables.
|
### 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=""
|
declare var_file="" var_log=""
|
||||||
[[ -r /root/ciss_xdg_tmp.sh ]] && . /root/ciss_xdg_tmp.sh
|
[[ -r /root/ciss_xdg_tmp.sh ]] && . /root/ciss_xdg_tmp.sh
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
for var_log in "${ary_logrotate[@]}"; do
|
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
|
[[ -e "${var_file}" ]] || continue
|
||||||
### Replace leading 'monthly'/'weekly' directives with 'daily', preserving indentation and trailing comments.
|
### Replace leading 'monthly'/'weekly' directives with 'daily', preserving indentation and trailing comments.
|
||||||
sed -E -i \
|
sed -E -i \
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ readonly -f sysp
|
|||||||
#######################################
|
#######################################
|
||||||
# Main autostart function.
|
# Main autostart function.
|
||||||
# Arguments:
|
# Arguments:
|
||||||
# none
|
# None
|
||||||
#######################################
|
#######################################
|
||||||
main() {
|
main() {
|
||||||
declare -r repo_url="https://git.coresecret.dev/msw/CISS.debian.installer.git"
|
declare -r repo_url="https://git.coresecret.dev/msw/CISS.debian.installer.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user