Skip to content

Commit

Permalink
Merge pull request #58 from ElstonLewis/Add_ntp_to_debian12
Browse files Browse the repository at this point in the history
Added chrony pkg install for Debian 12
  • Loading branch information
ElstonLewis authored Nov 29, 2023
2 parents ab539a0 + 4ed237d commit 5e8e321
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions linux.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ build {
"./scripts/linux/mount.sh",
"./scripts/linux/dns.sh",
"./scripts/linux/rhel-activation.sh",
"./scripts/linux/ntp.sh",
"./scripts/linux/packages.sh",
"./scripts/linux/boot.sh",
"./scripts/linux/ssh.sh",
Expand Down
6 changes: 6 additions & 0 deletions scripts/linux/ntp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

if [[ ! "$1" == "debian12" ]]; then
chroot /mnt/ apt install chrony -y
fi

0 comments on commit 5e8e321

Please sign in to comment.