mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-21 02:04:32 +01:00
some refactorings; parses the /net/wlan-sessions mqtt topic and send devices data
This commit is contained in:
26
do.sh
Executable file
26
do.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
usage() {
|
||||
echo "Usage $0 (build-linux|sync)"
|
||||
}
|
||||
|
||||
if [ "$1" == "" ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
while (( "$#" )); do
|
||||
case "$1" in
|
||||
build-linux)
|
||||
env GOOS=linux GOARCH=amd64 go build cmd/spaceDevices.go
|
||||
;;
|
||||
sync)
|
||||
rsync -avzi --delete spaceDevices webUI root@spacegate:/home/status/spaceDevices2/
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
exit 1
|
||||
esac
|
||||
shift
|
||||
done
|
||||
Reference in New Issue
Block a user