Skip to content

Commit 7526afd

Browse files
Merge pull request #10557 from maage/bash_package-1
Use bash_package_*
2 parents 437173e + 7f58b56 commit 7526afd

46 files changed

Lines changed: 62 additions & 64 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

linux_os/guide/services/cron_and_at/restrict_at_cron_users/file_cron_deny_not_exist/tests/dne.pass.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
# packages = crontabs
23

34
FILE=/etc/cron.deny
45

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
# packages = crontabs
23

34
touch /etc/cron.deny
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
2-
#
2+
# packages = crontabs
33

44
rm -f /etc/cron.allow

linux_os/guide/services/ntp/chronyd_or_ntpd_set_maxpoll/tests/chrony.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# profiles = xccdf_org.ssgproject.content_profile_stig
55

6-
yum remove -y ntp
6+
{{{ bash_package_remove("ntp") }}}
77

88
# Remove all pool options
99
sed -i "/^pool.*/d" {{{ chrony_conf_path }}}

linux_os/guide/services/ntp/chronyd_or_ntpd_set_maxpoll/tests/chrony_no_pool_nor_servers.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# profiles = xccdf_org.ssgproject.content_profile_stig
55

6-
yum remove -y ntp
6+
{{{ bash_package_remove("ntp") }}}
77

88
# Remove all pool and server options
99
sed -i "/^pool.*/d" {{{ chrony_conf_path }}}

linux_os/guide/services/ntp/chronyd_or_ntpd_set_maxpoll/tests/chrony_nothing_done.fail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# profiles = xccdf_org.ssgproject.content_profile_stig
55
# platform = Oracle Linux 7,Red Hat Enterprise Linux 7
66

7-
yum remove -y ntp
7+
{{{ bash_package_remove("ntp") }}}
88

99
systemctl enable chronyd.service

linux_os/guide/services/ntp/chronyd_or_ntpd_set_maxpoll/tests/chrony_one_pool_configured.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# profiles = xccdf_org.ssgproject.content_profile_stig
55

6-
yum remove -y ntp
6+
{{{ bash_package_remove("ntp") }}}
77

88
# Remove all server or pool options
99
sed -i "/^\(server\|pool\).*/d" {{{ chrony_conf_path }}}

linux_os/guide/services/ntp/chronyd_or_ntpd_set_maxpoll/tests/chrony_one_pool_misconfigured.fail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# profiles = xccdf_org.ssgproject.content_profile_stig
55

6-
yum remove -y ntp
6+
{{{ bash_package_remove("ntp") }}}
77

88
# Remove all server or pool options
99
sed -i "/^\(server\|pool\).*/d" {{{ chrony_conf_path }}}

linux_os/guide/services/ntp/chronyd_or_ntpd_set_maxpoll/tests/chrony_one_pool_missing_parameter.fail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# profiles = xccdf_org.ssgproject.content_profile_stig
55

6-
yum remove -y ntp
6+
{{{ bash_package_remove("ntp") }}}
77

88
# Remove all server options
99
sed -i "/^\(server\|pool\).*/d" {{{ chrony_conf_path }}}

linux_os/guide/services/ntp/chronyd_or_ntpd_set_maxpoll/tests/chrony_one_server_misconfigured.fail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# profiles = xccdf_org.ssgproject.content_profile_stig
55

6-
yum remove -y ntp
6+
{{{ bash_package_remove("ntp") }}}
77

88
# Remove all pool options
99
sed -i "/^pool.*/d" {{{ chrony_conf_path }}}

0 commit comments

Comments
 (0)