Update scripts for Ubuntu 20.04 (#7)

* Modify time sync for 20.04

* Add Vagrantfile for 20.04

* Update documentation
This commit is contained in:
Jason Hee authored and GitHub committed 2020-04-24 12:12:01 +08:00
1 parent 3e02daa942
commit d8eb1c23b9
4 files changed
+82 -4

No files matched your search

+8 -2
View File
@@ -114,8 +114,14 @@ function setTimezone() {
# Configure Network Time Protocol
function configureNTP() {
sudo apt-get update
sudo apt-get --assume-yes install ntp
ubuntu_version="$(lsb_release -sr)"
if [[ $ubuntu_version == '20.04' ]]; then
sudo systemctl restart systemd-timesyncd
else
sudo apt-get update
sudo apt-get --assume-yes install ntp
fi
}
# Gets the amount of physical memory in GB (rounded up) installed on the machine