mirror of
https://github.com/darksaid98/ubuntu-server-setup.git
synced 2026-12-02 06:28:59 +00:00
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:
1 parent
3e02daa942
commit
d8eb1c23b9
4 files changed
+82
-4
No files matched your search
+8
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user