minor notes

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-29 02:28:19 -07:00
parent c1045a074a
commit a06fd3c4a7
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ run:
debug:
@echo your version of go must be greater than 2.10. Your version is ${GOVERSION}
go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.GOVERSION='${GOVERSION}' -X main.BUILDTIME='${BUILDTIME}'"
./cloud-control-panel --debugging
./cloud-control-panel --debug
nogui:
go build
@ -44,7 +44,7 @@ update:
go get -v -t -u .
# make the json config file human readable
json-readable:
json-make-readable:
cat ~/.config/cloud-control-panel.json |jq -r --tab
json-restore:

View File

@ -110,6 +110,7 @@ func main() {
// use this to discover what the OS thinks it's hostname is
// seems to be cross platform (?)
// Windows: WMIC computersystem where caption='current_pc_name' rename new_pc_name
hostname := fqdn.Get()
log.Println("fqdn.Get() = ", hostname)
gui.Data.Hostname = hostname