From 962f44e38eb525c8130685cb0b45ea205ab40819 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Mon, 28 Mar 2022 19:36:19 -0400 Subject: [PATCH] Add Linux Mint 20.3 option --- octoprint_deploy.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 80b773b..f094b1a 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -457,7 +457,7 @@ prepare () { echo 'This only needs to be run once to prepare your system to use octoprint_deploy.' echo 'Run this setup and then connect to OctoPrint through your browser to setup your admin user.' PS3='Installation type: ' - options=("OctoPi" "Ubuntu 18-20" "Ubuntu 21.X" "Quit") + options=("OctoPi" "Ubuntu 18-20" "Ubuntu 21.X" "Mint 20.3" "Quit") select opt in "${options[@]}" do case $opt in @@ -473,6 +473,10 @@ prepare () { INSTALL=3 break ;; + "Mint 20.3") + INSTALL=4 + break + ;; "Quit") exit 1 ;; @@ -519,6 +523,10 @@ prepare () { if [ $INSTALL -eq 3 ]; then apt-get -y install make v4l-utils python3.9-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip fi + #Mint requires python3.8-venv? + if [ $INSTALL -eq 4 ]; then + apt-get -y install make v4l-utils python3.8-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip + fi echo "Installing OctoPrint in /home/$user/OctoPrint" #make venv sudo -u $user python3 -m venv /home/$user/OctoPrint