formatting

This commit is contained in:
paukstelis
2022-02-08 18:37:14 -05:00
parent 132905aeff
commit 503b3a8aa0

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 20.X" "Ubuntu 21.X" "Quit") options=("OctoPi" "Ubuntu 18-20" "Ubuntu 21.X" "Quit")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
@@ -465,7 +465,7 @@ prepare () {
INSTALL=1 INSTALL=1
break break
;; ;;
"Ubuntu 20.X") "Ubuntu 18-20")
INSTALL=2 INSTALL=2
break break
;; ;;
@@ -503,10 +503,10 @@ prepare () {
#install packages #install packages
apt-get update > /dev/null apt-get update > /dev/null
if [ $INSTALL -eq 2 ]; then if [ $INSTALL -eq 2 ]; then
apt-get -y install make virtualenv python-is-python3 cmake libjpeg8-dev gcc g++ python3-dev build-essentials python3-setuptools libyaml-dev python3-pip python3-venv apt-get -y install make virtualenv python-is-python3 cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip python3-venv
fi fi
if [ $INSTALL -eq 3 ]; then if [ $INSTALL -eq 3 ]; then
apt-get -y install make python3.9-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip apt-get -y install make python3.9-venv cmake libjpeg8-dev gcc g++ python3-dev build-essential python3-setuptools libyaml-dev python3-pip
fi fi
echo "Installing OctoPrint in /home/$user/OctoPrint" echo "Installing OctoPrint in /home/$user/OctoPrint"
#make venv #make venv