summaryrefslogtreecommitdiff
path: root/doUpgrade.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 02:47:40 -0500
committerJeff Carr <[email protected]>2025-10-03 02:47:40 -0500
commitbdb6a5570525ae59f21a277f50e5a2dcd86e9dd0 (patch)
tree2bd12a44fef47b712ce6be9ba529dea612b0905f /doUpgrade.go
parentd0a5983ade20fed877c2803b73528c28dac77fa6 (diff)
moving stuff here from what was bash before
Diffstat (limited to 'doUpgrade.go')
-rw-r--r--doUpgrade.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/doUpgrade.go b/doUpgrade.go
index 1938900..83f69ef 100644
--- a/doUpgrade.go
+++ b/doUpgrade.go
@@ -4,30 +4,9 @@
package main
import (
- "fmt"
- "os"
-
- "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/zoopb"
- "go.wit.com/log"
)
-// exits if not root
-func checkSuperuser() {
- if os.Getuid() != 0 {
- badExit(fmt.Errorf("you must be root"))
- }
-}
-
-func exitOnError(cmd []string) {
- var err error
- log.Info("Running:", cmd)
- _, err = shell.RunVerbose(cmd)
- if err != nil {
- badExit(err)
- }
-}
-
func doUpgrade() error {
var cmd []string