parent
c1045a074a
commit
a06fd3c4a7
4
Makefile
4
Makefile
|
@ -13,7 +13,7 @@ run:
|
||||||
debug:
|
debug:
|
||||||
@echo your version of go must be greater than 2.10. Your version is ${GOVERSION}
|
@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}'"
|
go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.GOVERSION='${GOVERSION}' -X main.BUILDTIME='${BUILDTIME}'"
|
||||||
./cloud-control-panel --debugging
|
./cloud-control-panel --debug
|
||||||
|
|
||||||
nogui:
|
nogui:
|
||||||
go build
|
go build
|
||||||
|
@ -44,7 +44,7 @@ update:
|
||||||
go get -v -t -u .
|
go get -v -t -u .
|
||||||
|
|
||||||
# make the json config file human readable
|
# make the json config file human readable
|
||||||
json-readable:
|
json-make-readable:
|
||||||
cat ~/.config/cloud-control-panel.json |jq -r --tab
|
cat ~/.config/cloud-control-panel.json |jq -r --tab
|
||||||
|
|
||||||
json-restore:
|
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
|
// use this to discover what the OS thinks it's hostname is
|
||||||
// seems to be cross platform (?)
|
// seems to be cross platform (?)
|
||||||
|
// Windows: WMIC computersystem where caption='current_pc_name' rename new_pc_name
|
||||||
hostname := fqdn.Get()
|
hostname := fqdn.Get()
|
||||||
log.Println("fqdn.Get() = ", hostname)
|
log.Println("fqdn.Get() = ", hostname)
|
||||||
gui.Data.Hostname = hostname
|
gui.Data.Hostname = hostname
|
||||||
|
|
Loading…
Reference in New Issue