Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions pi_scripts/installVisionProcessOnPi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,5 @@ fi
# TODO Explain-y comments

scp ${PI_USER}@${PI_ADDR} pi_scripts/vision.service ${PI_USER}@${PI_ADDR}:/tmp
ssh ${PI_USER}@${PI_ADDR} "sudo cp /tmp/vision.service /etc/systemd/system"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl stop vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl disable vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl daemon-reload"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl enable vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl start vision.service"

ssh ${PI_USER}@${PI_ADDR} "sudo cp /tmp/vision.service /etc/systemd/system && sudo systemctl stop vision.service && sudo systemctl disable vision.service && sudo systemctl daemon-reload && sudo systemctl enable vision.service && sudo systemctl start vision.service"

4 changes: 1 addition & 3 deletions pi_scripts/restartVisionProcessOnPi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ fi

# SSH to the pi and restart the vision process
echo "Restarting vision process on ${PI_USER}@${PI_ADDR}"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl stop vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl daemon-reload"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl start vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl stop vision.service && sudo systemctl daemon-reload && sudo systemctl start vision.service"
4 changes: 1 addition & 3 deletions pi_scripts/uninstallVisionProcessOnPi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ if [[ $1 != "" ]]; then
PI_ADDR=$1
fi

ssh ${PI_USER}@${PI_ADDR} "sudo systemctl stop vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl disable vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo rm /etc/systemd/system/vision.service"
ssh ${PI_USER}@${PI_ADDR} "sudo systemctl stop vision.service && sudo systemctl disable vision.service && sudo rm /etc/systemd/system/vision.service"
2 changes: 1 addition & 1 deletion pi_scripts/windows/pushCodeToPi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi
echo "Make sure you've done a \"git pull\" so that you're deploying the latest code!"
echo

./gradlew build -PbuildType=arm-raspbian -PtestType=windows
gradlew build -PbuildType=arm-raspbian -PtestType=windows

# ERROR HANDLING: check that the build succeeded
if [ $? -ne 0 ]; then
Expand Down