diff --git a/setup.sh b/setup.sh index ce8fc2b5..6f6f6334 100755 --- a/setup.sh +++ b/setup.sh @@ -10,14 +10,10 @@ 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 + sudo apt update --allow-releaseinfo-change || true + if [ $? -ne 0 ]; then echo "ERROR: 'apt-get update' failed with error code: $?"; fi 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.";