Skip to content

Commit

Permalink
delete device files after scping files, in case the operation fails m…
Browse files Browse the repository at this point in the history
…idway.
  • Loading branch information
vegano1 committed Apr 10, 2023
1 parent 5a87d73 commit 5e76da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app-shell-odd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ dist-ot3: package-deps
.PHONY: push-ot3
push-ot3: dist-ot3
tar -zcvf opentrons-robot-app.tar.gz -C ./dist/linux-arm64-unpacked/ ./
ssh $(ssh_opts) root@$(host) "rm -rf opentrons-robot-app.tar.gz && mount -o remount,rw / && systemctl stop opentrons-robot-app && rm -rf /opt/opentrons-app && mkdir -p /opt/opentrons-app"
scp -r $(ssh_opts) ./opentrons-robot-app.tar.gz root@$(host):
ssh $(ssh_opts) root@$(host) "tar -xvf opentrons-robot-app.tar.gz -C /opt/opentrons-app/ && mount -o remount,ro / && systemctl start opentrons-robot-app"
ssh $(ssh_opts) root@$(host) "mount -o remount,rw / && systemctl stop opentrons-robot-app && rm -rf /opt/opentrons-app && mkdir -p /opt/opentrons-app"
ssh $(ssh_opts) root@$(host) "tar -xvf opentrons-robot-app.tar.gz -C /opt/opentrons-app/ && mount -o remount,ro / && systemctl start opentrons-robot-app && rm -rf opentrons-robot-app.tar.gz"
rm -rf opentrons-robot-app.tar.gz

# development
Expand Down

0 comments on commit 5e76da5

Please sign in to comment.