IMP: change apt in apt-get

This commit is contained in:
Thibault Ayanides 2020-12-07 17:16:19 +01:00
parent b09b75a51e
commit 99ac9339f4
2 changed files with 4 additions and 5 deletions

View File

@ -1,16 +1,15 @@
# shellcheck shell=bash # shellcheck shell=bash
# run-shellcheck # run-shellcheck
test_audit() { test_audit() {
# Make all variable local to the function by using `local`
describe Running on blank host describe Running on blank host
register_test retvalshouldbe 1 register_test retvalshouldbe 1
dismiss_count_for_test dismiss_count_for_test
# shellcheck disable=2154
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
describe Correcting situation describe Correcting situation
apt update apt-get update
apt install -y ntp apt-get install -y ntp
# Finally assess that your corrective actions end up with a compliant system # Finally assess that your corrective actions end up with a compliant system
describe Checking resolved state describe Checking resolved state

View File

@ -2,7 +2,7 @@
# run-shellcheck # run-shellcheck
test_audit() { test_audit() {
apt update apt-get update
apt-get install -y libpam-pwquality apt-get install -y libpam-pwquality
describe Running on blank host describe Running on blank host