Skip to content

Commit

Permalink
CLOUD-57217 do not create home directory and print out version by def…
Browse files Browse the repository at this point in the history
…ault
  • Loading branch information
akanto committed Aug 26, 2016
1 parent f777995 commit 57f4fdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BINARY=salt-bootstrap

VERSION=0.2.2
VERSION=0.3.0
BUILD_TIME=$(shell date +%FT%T)
LDFLAGS=-ldflags "-X github.com/sequenceiq/salt-bootstrap/saltboot.Version=${VERSION} -X github.com/sequenceiq/salt-bootstrap/saltboot.BuildTime=${BUILD_TIME}"

Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ func main() {
log.SetOutput(io.MultiWriter(os.Stdout, logFile))

log.Println("[main] Launch salt-bootstrap application")
log.Printf("[main] Version: %s-%s", saltboot.Version, saltboot.BuildTime)
saltboot.NewCloudbreakBootstrapWeb()
}
2 changes: 1 addition & 1 deletion saltboot/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func CreateUser(saltMaster SaltMaster) (resp model.Response, err error) {
if err != nil {
return model.Response{ErrorText: err.Error(), StatusCode: http.StatusInternalServerError}, err
}
result, err = ExecCmd("adduser", "-G", "wheel", "-s", "/sbin/nologin", "--password", hash, SALT_USER)
result, err = ExecCmd("adduser", "--no-create-home", "-G", "wheel", "-s", "/sbin/nologin", "--password", hash, SALT_USER)

if err != nil {
return model.Response{ErrorText: err.Error(), StatusCode: http.StatusInternalServerError}, err
Expand Down

0 comments on commit 57f4fdc

Please sign in to comment.