Add Linux Mint 20.3 option

This commit is contained in:
paukstelis
2022-03-28 19:36:19 -04:00
parent 1d3b726213
commit 962f44e38e

View File

@@ -457,7 +457,7 @@ prepare () {
echo 'This only needs to be run once to prepare your system to use octoprint_deploy.' 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.' echo 'Run this setup and then connect to OctoPrint through your browser to setup your admin user.'
PS3='Installation type: ' 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[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
@@ -473,6 +473,10 @@ prepare () {
INSTALL=3 INSTALL=3
break break
;; ;;
"Mint 20.3")
INSTALL=4
break
;;
"Quit") "Quit")
exit 1 exit 1
;; ;;
@@ -519,6 +523,10 @@ prepare () {
if [ $INSTALL -eq 3 ]; then 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 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 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" echo "Installing OctoPrint in /home/$user/OctoPrint"
#make venv #make venv
sudo -u $user python3 -m venv /home/$user/OctoPrint sudo -u $user python3 -m venv /home/$user/OctoPrint