mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-21 21:17:00 +01:00
IMP: change apt in apt-get
This commit is contained in:
parent
b09b75a51e
commit
99ac9339f4
@ -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
|
||||
|
@ -2,7 +2,7 @@
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
|
||||
apt update
|
||||
apt-get update
|
||||
apt-get install -y libpam-pwquality
|
||||
|
||||
describe Running on blank host
|
||||
|
Loading…
Reference in New Issue
Block a user