Skip to content

Commit

Permalink
Remove TinyPilot Pro before installing Community. (#1107)
Browse files Browse the repository at this point in the history
* Remove TinyPilot Pro before Community install.

* Ignore errors when removing previous tinypilot.
  • Loading branch information
jdeanwallace authored Sep 26, 2022
1 parent 933d47f commit 6073998
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions get-tinypilot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ sudo tar \
--directory "${INSTALLER_DIR}"
sudo chown root:root --recursive "${INSTALLER_DIR}"

# Remove the TinyPilot Pro Debian package to avoid version conflicts with
# the TinyPilot Community Debian package.
# https://github.com/tiny-pilot/tinypilot-pro/issues/596
if [[ "${HAS_PRO_INSTALLED}" -eq 1 ]]; then
sudo apt-get remove tinypilot --yes || true
fi

# Run install.
pushd "${INSTALLER_DIR}"
sudo ./install
Expand Down

0 comments on commit 6073998

Please sign in to comment.