diff --git a/main.go b/main.go index 9dfe546..ff56323 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( ) const ( - version = "0.18.2" + version = "0.18.3" ) type args struct { diff --git a/provision/service.go b/provision/service.go index 8418ba6..6d7113a 100644 --- a/provision/service.go +++ b/provision/service.go @@ -170,7 +170,7 @@ func persist(s base.Service) error { // Fix "SELinux is preventing systemd from open access on the file " error restorecon := fmt.Sprintf("/sbin/restorecon %s", serviceFilePath) internal.Log.Debugf("running restorecon command %s", restorecon) - cmdErr := marecmd.RunNoOutput(marecmd.Input{Command: restorecon, Sudo: true}) + _, cmdErr := marecmd.RunFormatError(marecmd.Input{Command: restorecon, Sudo: true}) if cmdErr != nil { return cmdErr } diff --git a/provision/useringroup.go b/provision/useringroup.go index c2b4dcc..c372f8f 100644 --- a/provision/useringroup.go +++ b/provision/useringroup.go @@ -14,7 +14,7 @@ import ( ) func addUserToGroup(user, group string) error { - internal.Log.Info("Adding user %s to group %s", user, group) + internal.Log.Infof("Adding user %s to group %s", user, group) usermod := fmt.Sprintf("usermod -aG %s %s", group, user) _, err := marecmd.RunFormatError(marecmd.Input{Command: usermod, Sudo: true}) if err != nil {