Skip to content

Commit

Permalink
Fixed issue with service restart on save
Browse files Browse the repository at this point in the history
  • Loading branch information
telmomarques committed Jun 27, 2020
1 parent af3c1a9 commit 05f769e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/sshserver/sshserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func AddUser(user SSHUser) error {
return &customerror.Error{-2, 500, "Error adding user."}
}

service.Restart(service.Runit, serviceName)

return nil
}

Expand All @@ -127,6 +129,7 @@ func DeleteUser(username string) bool {
return false
}

service.Restart(service.Runit, serviceName)
return true
}

Expand Down

0 comments on commit 05f769e

Please sign in to comment.