Skip to content

Commit

Permalink
Merge pull request #199 from AndreWohnsland/dev
Browse files Browse the repository at this point in the history
Remove old CocktailBerry folder if it exist at installation
  • Loading branch information
AndreWohnsland authored Oct 20, 2024
2 parents 74c82f2 + 52a97bc commit 81daa1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions scripts/all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ echo "~ Getting the CocktailBerry project from GitHub ... ~"
echo "It will be located at ~/CocktailBerry"
# shellcheck disable=SC2164
cd ~
# if folder exist, backup the "custom_config.yaml" within it to ~/custom_config.yaml.bck
if [ -d ~/CocktailBerry ]; then
echo "CocktailBerry folder already exists. Backup existing custom_config.yaml to ~/old_custom_config.yaml"
cp ~/CocktailBerry/custom_config.yaml ~/old_custom_config.yaml
echo "Removing old CocktailBerry folder if it exists ..."
sudo rm -rf ~/CocktailBerry
fi
# first remove the folder if it already exists
git clone https://github.com/AndreWohnsland/CocktailBerry.git
# shellcheck disable=SC2164
cd ~/CocktailBerry
Expand Down
8 changes: 4 additions & 4 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ else
fi
# try to install python-periphery, so other devices may also use the gpio
pip install python-periphery || echo "ERROR: Could not install python-periphery, if you are on a RPi, this is not needed"
# on none RPi devices, we need to set control to the GPIOs, and set user to sudoers
if ! is_raspberry_pi; then
./setup_non_rpi.sh
fi
# still cp the file, but do not inform the user anymore, since this is not the default anymore
cp microservice/.env.example microservice/.env
echo "Install qtsass, this may take a while depending on your OS, so it is time for a coffe break :)"
echo "If this takes too long for you, you can cancel this step with 'ctrl + c' and install qtsass later manually with 'pip install qtsass'"
echo "qtsass is needed if you want to customize the CocktailBerry GUI and use your own colors"
pip install qtsass
# on none RPi devices, we need to set control to the GPIOs, and set user to sudoers
if ! is_raspberry_pi; then
./setup_non_rpi.sh
fi
fi
echo "Done with the setup"

0 comments on commit 81daa1e

Please sign in to comment.