Skip to content

Commit

Permalink
Added upload scipt for windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
guerillagrow committed Jul 14, 2018
1 parent fae30ea commit 808abb2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions upload_gobox.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
echo off

set rpiip=%1

echo "Upload GoBox to your Raypberry Pi"
echo "Raspberry PI IP-Address: %rpiip%"
echo "-----------------------------------"

echo "Upload GoBox service (init.d)"
pscp -r ./initscript/gobox.sh root@%rpiip%:/etc/init.d/gobox

echo "Upload GoBox config"
pscp -r ./conf/ root@%rpiip%:/usr/local/gobox/

echo "Upload GoBox views"
pscp -r ./views/ root@%rpiip%:/usr/local/gobox/

echo "Upload GoBox static files"
pscp -r ./static/ root@%rpiip%:/usr/local/gobox/

echo "Upload GoBox export folder"
pscp -r ./export/ root@%rpiip%:/usr/local/gobox/

echo "Upload GoBox tmp folder"
pscp -r ./tmp/ root@%rpiip%:/usr/local/gobox/

echo "Upload GoBox binary"
pscp ./cmd/gobox/gobox_arm root@%rpiip%:/usr/local/bin/gobox

echo "Upload GoBox sensD binary"
pscp ./cmd/sensd/sensd_arm root@%rpiip%:/usr/local/bin/sensd

0 comments on commit 808abb2

Please sign in to comment.