V8.13.536.2025.12.04
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -245,7 +245,6 @@ find /usr/lib/live/boot -type f -exec chmod 0755 {} +
|
||||
&& chmod 0755 /etc/initramfs-tools/scripts/init-top/0000_ciss_fixpath.sh
|
||||
|
||||
### Ensure proper systemd directories exist ------------------------------------------------------------------------------------
|
||||
mkdir -p /etc/systemd/networkd.conf.d
|
||||
mkdir -p /etc/systemd/resolved.conf.d
|
||||
mkdir -p /etc/systemd/system
|
||||
mkdir -p /etc/systemd/system/multi-user.target.wants
|
||||
@@ -285,12 +284,6 @@ LLMNR=no
|
||||
MulticastDNS=no
|
||||
EOF
|
||||
|
||||
cat << EOF >| /etc/systemd/networkd.conf.d/10-ciss-hardening.conf
|
||||
[Network]
|
||||
LLMNR=no
|
||||
MulticastDNS=no
|
||||
EOF
|
||||
|
||||
printf "\e[92m++++ ++++ ++++ ++++ ++++ ++++ ++ ✅ '%s' applied successfully. \e[0m\n" "${0}"
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -382,7 +382,7 @@ main() {
|
||||
|
||||
fi
|
||||
|
||||
if [[ "${COUNTER}" -eq 3 ]]; then
|
||||
if [[ "${COUNTER}" -ge 3 && "${PASS_SENT}" -eq 0 ]]; then
|
||||
|
||||
secure_unset_pass
|
||||
break
|
||||
@@ -391,6 +391,8 @@ main() {
|
||||
|
||||
if [[ "${PASS_SENT}" -eq 0 ]]; then
|
||||
|
||||
COUNTER=$((COUNTER + 1))
|
||||
|
||||
# shellcheck disable=SC2310
|
||||
read_passphrase || continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user