From 99ac9339f4393456e625f409b303e628ff9ef8cd Mon Sep 17 00:00:00 2001 From: Thibault Ayanides Date: Mon, 7 Dec 2020 17:16:19 +0100 Subject: [PATCH] IMP: change apt in apt-get --- tests/hardening/2.2.1.1_use_time_sync.sh | 7 +++---- tests/hardening/5.3.1_enable_pwquality.sh | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/hardening/2.2.1.1_use_time_sync.sh b/tests/hardening/2.2.1.1_use_time_sync.sh index e64e063..6c32584 100644 --- a/tests/hardening/2.2.1.1_use_time_sync.sh +++ b/tests/hardening/2.2.1.1_use_time_sync.sh @@ -1,16 +1,15 @@ # shellcheck shell=bash # run-shellcheck test_audit() { - # Make all variable local to the function by using `local` - describe Running on blank host register_test retvalshouldbe 1 dismiss_count_for_test + # shellcheck disable=2154 run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all describe Correcting situation - apt update - apt install -y ntp + apt-get update + apt-get install -y ntp # Finally assess that your corrective actions end up with a compliant system describe Checking resolved state diff --git a/tests/hardening/5.3.1_enable_pwquality.sh b/tests/hardening/5.3.1_enable_pwquality.sh index c230ad8..e07785a 100644 --- a/tests/hardening/5.3.1_enable_pwquality.sh +++ b/tests/hardening/5.3.1_enable_pwquality.sh @@ -2,7 +2,7 @@ # run-shellcheck test_audit() { - apt update + apt-get update apt-get install -y libpam-pwquality describe Running on blank host