mirror of
https://github.com/darksaid98/ubuntu-server-setup.git
synced 2026-12-02 14:38:58 +00:00
Add support for 18.04 (#4)
This commit is contained in:
1 parent
79ccba4ac2
commit
3e02daa942
3 files changed
+79
-2
No files matched your search
+7
-1
@@ -113,7 +113,13 @@ function testTimezone() {
|
||||
|
||||
function testNTP() {
|
||||
configureNTP
|
||||
assertContains "NTP synchronized: yes" "$(timedatectl status)"
|
||||
ubuntu_version="$(lsb_release -sr)"
|
||||
|
||||
if [[ $ubuntu_version == '18.04' ]]; then
|
||||
assertContains "System clock synchronized: yes" "$(timedatectl status)"
|
||||
else
|
||||
assertContains "NTP synchronized: yes" "$(timedatectl status)"
|
||||
fi
|
||||
}
|
||||
|
||||
function testTeardown () {
|
||||
|
||||
Reference in new issue
Block a user