parent
c1045a074a
commit
a06fd3c4a7
4
Makefile
4
Makefile
|
@ -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:
|
||||
|
|
1
main.go
1
main.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue