mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 05:27:01 +01:00
IMP: change apt in apt-get
This commit is contained in:
parent
b09b75a51e
commit
99ac9339f4
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user