From 0d7dc2817f48b52d8f1389522acb51b92d6da7b8 Mon Sep 17 00:00:00 2001 From: Tommy Date: Wed, 7 Feb 2024 08:46:06 -0700 Subject: [PATCH] Split /etc/sysconfig/chronyd Signed-off-by: Tommy --- Fedora-Workstation-39.sh | 3 +-- RHEL-Server-9.sh | 6 ++---- etc/sysconfig/chronyd | 2 ++ 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 etc/sysconfig/chronyd diff --git a/Fedora-Workstation-39.sh b/Fedora-Workstation-39.sh index d27b550..3525daf 100644 --- a/Fedora-Workstation-39.sh +++ b/Fedora-Workstation-39.sh @@ -39,8 +39,7 @@ sudo chmod 700 /home/* # Setup NTS sudo rm -rf /etc/chrony/chrony.conf unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | sudo tee /etc/chrony/chrony.conf -echo '# Command-line options for chronyd -OPTIONS="-F 1"' | sudo tee /etc/sysconfig/chronyd +unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/sysconfig/chronyd | sudo tee /etc/sysconfig/chronyd sudo systemctl restart chronyd diff --git a/RHEL-Server-9.sh b/RHEL-Server-9.sh index 8177709..442c80d 100644 --- a/RHEL-Server-9.sh +++ b/RHEL-Server-9.sh @@ -27,10 +27,8 @@ sudo systemctl mask debug-shell.service sudo systemctl mask kdump.service # Setup NTS -sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf - -echo '# Command-line options for chronyd -OPTIONS="-F 1"' | sudo tee /etc/sysconfig/chronyd +unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf | sudo tee /etc/chrony.conf +unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/sysconfig/chronyd | sudo tee /etc/sysconfig/chronyd sudo systemctl restart chronyd diff --git a/etc/sysconfig/chronyd b/etc/sysconfig/chronyd new file mode 100644 index 0000000..74bd9cf --- /dev/null +++ b/etc/sysconfig/chronyd @@ -0,0 +1,2 @@ +# Command-line options for chronyd +OPTIONS="-F 1" \ No newline at end of file