Update install.sh

This commit is contained in:
SpudGunMan
2024-12-12 10:45:09 -08:00
parent 8a510a7b11
commit eb87cf1bc8
+7 -6
View File
@@ -8,7 +8,7 @@ printf "\n########################"
printf "\nMeshing Around Installer\n"
printf "########################\n"
printf "\nThis script will try and install the Meshing Around Bot and its dependencies, works best in raspian/debian/ubuntu\n"
printf "\nChecking for dependencies\n"
printf "\nChecking for dependencies...\n"
# Check and install dependencies
if ! command -v python3 &> /dev/null
@@ -33,6 +33,7 @@ then
printf "pip not found, please install pip with your OS\n"
exit 1
fi
printf "\nDependencies installed\n"
# add user to groups for serial access
printf "\nAdding user to dialout, bluetooth, and tty groups for serial access\n"
@@ -52,9 +53,9 @@ if [ -f config.ini ]; then
fi
cp config.template config.ini
printf "\nConfig files generated\n"
printf "\nConfig files generated!\n"
echo "\nDo you want to install the bot in a python virtual environment? (y/n)"
printf "\nDo you want to install the bot in a python virtual environment? (y/n)"
read venv
if [ $venv == "y" ]; then
@@ -139,7 +140,7 @@ if [ $bot == "n" ]; then
fi
# ask if emoji font should be installed for linux
echo "\nDo you want to install the emoji font for debian/ubuntu linux? (y/n)"
printf "\nDo you want to install the emoji font for debian/ubuntu linux? (y/n)"
read emoji
if [ $emoji == "y" ]; then
sudo apt-get install -y fonts-noto-color-emoji
@@ -150,7 +151,7 @@ printf "\nOptionally if you want to install the multi gig LLM Ollama compnents w
printf "\ncurl -fsSL https://ollama.com/install.sh | sh\n"
# ask if the user wants to install the LLM Ollama components
echo "\nDo you want to install the LLM Ollama components? (y/n)"
printf "\nDo you want to install the LLM Ollama components? (y/n)"
read ollama
if [ $ollama == "y" ]; then
curl -fsSL https://ollama.com/install.sh | sh
@@ -164,7 +165,7 @@ if [ $ollama == "y" ]; then
fi
fi
echo "\nGood time to reboot? (y/n)"
printf "\nGood time to reboot? (y/n)"
read reboot
if [ $reboot == "y" ]; then
sudo reboot