From 85761945ce11bd2417b1889b210f3d582f1ec211 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 08:00:05 -0500 Subject: early work on a debian library --- doRdate.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doRdate.go') diff --git a/doRdate.go b/doRdate.go index a757e2c..7896f1c 100644 --- a/doRdate.go +++ b/doRdate.go @@ -3,17 +3,20 @@ package main -import "go.wit.com/lib/fhelp" +import ( + "go.wit.com/lib/debian" + "go.wit.com/lib/fhelp" +) func doRdate() { checkSuperuser() if _, err := fhelp.CheckCmd("rdate"); err != nil { - aptInstallOrExit("rdate") + debian.AptInstallOrExit("rdate") } if _, err := fhelp.CheckCmd("hwclock"); err != nil { - aptInstallOrExit("util-linux-extra") + debian.AptInstallOrExit("util-linux-extra") } exitOnError([]string{"rdate", "rdate.grid.wit.com"}) -- cgit v1.2.3