Skip to content

Commit

Permalink
Guard rules tests dependent on 'ntp' package with RHEL7/OL7 platform
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyz committed Feb 7, 2024
1 parent 3b1fc4f commit e47ca51
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf
echo "restrict -6 default kod nomodify notrap nopeer noquery" >> /etc/ntp.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "" > /etc/ntp.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

rm -f /etc/ntp.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf
echo "restrict -6 default kod nomodify notrap nopeer noquery" >> /etc/ntp.conf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf
# this one is not complete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "restrict -4 default kod nomodify notrap nopeer noquery" > /etc/ntp.conf
# last two are swapped
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo 'OPTIONS="-u ntp:ntp"' > /etc/sysconfig/ntpd
echo 'ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS' > /usr/lib/systemd/system/ntpd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo 'OPTIONS="-u ntp:ntp"' > /etc/sysconfig/ntpd
rm -f /usr/lib/systemd/system/ntpd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo 'ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS' > /usr/lib/systemd/system/ntpd.service
rm -f /etc/sysconfig/ntpd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "" > /etc/sysconfig/ntpd
echo "" > /usr/lib/systemd/system/ntpd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "" > /etc/sysconfig/ntpd
rm -f /usr/lib/systemd/system/ntpd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo "" > /usr/lib/systemd/system/ntpd.service
rm -f /etc/sysconfig/ntpd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

rm -f /etc/sysconfig/ntpd
rm -f /usr/lib/systemd/system/ntpd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo 'OPTIONS=""' > /etc/sysconfig/ntpd
rm -f /usr/lib/systemd/system/ntpd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo 'OPTIONS="-u root:root"' > /etc/sysconfig/ntpd
rm -f /usr/lib/systemd/system/ntpd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# packages = ntp

# platform = Oracle Linux 7,Red Hat Enterprise Linux 7

echo 'ExecStart=/usr/sbin/ntpd -u root:root $OPTIONS' > /usr/lib/systemd/system/ntpd.service
rm -f /etc/sysconfig/ntpd

0 comments on commit e47ca51

Please sign in to comment.