Skip to content

Commit

Permalink
Bug fix: vicwomg#290 run apt only on required packages
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveFunctions committed Dec 24, 2023
1 parent 5cf0a11 commit 2a3c5d1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ if [ $REPLY = "y" ]

if [[ $(cat /etc/os-release | grep -i debian) != "" ]]; then
echo "Client is a Debian-based system. Installing binaries";
echo
echo "*** RUNNING APT-GET UPDATE ***"
sudo apt-get update --allow-releaseinfo-change
if [ $? -ne 0 ]; then echo "ERROR: 'apt-get update' failed with error code: $?"; exit 1; fi

echo
echo "*** INSTALLING REQUIRED BINARIES ***"
sudo apt-get install ffmpeg -y
sudo apt-get install chromium-browser -y
sudo apt-get install chromium-chromedriver -y
sudo apt install --only-upgrade ffmpeg chromium-browser chromium-chromedriver -y
if [ $? -ne 0 ]; then echo "ERROR: Binary dependency installation failed with error code: $?"; exit 1; fi
else
echo "Client is not Debian-based. Skipping binary installation. Please install ffmpeg and chrome manually.";
Expand Down

0 comments on commit 2a3c5d1

Please sign in to comment.