1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

Merge pull request #2436 from holta/raspios-mirror-flaky-so-add-another

RaspiOS mirror flaky, so add another to /etc/apt/sources.list
This commit is contained in:
A Holt 2020-06-06 10:51:19 -04:00 committed by GitHub
commit 29714ad1eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,11 @@ elif [ -f /etc/debian_version ]; then # Includes Debian, Ubuntu & Raspbian
echo -e 'ENSURE ANSIBLE UPDATES CLEANLY: (then re-run this script to be sure!)\n'
grep '^deb .*ansible' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep -v '^/etc/apt/sources.list.d/iiab-ansible.list:' || true # Override bash -e (instead of aborting at 1st error)
fi
if [ -f /etc/rpi-issue ]; then
# 2020-06-06: https://www.raspberrypi.org/forums/viewtopic.php?t=276340
echo -e "\nAdd another apt source/mirror if Raspberry Pi OS, which can be flaky..."
sed -i '1i deb http://mirror.us.leaseweb.net/raspbian/raspbian buster main contrib non-free rpi' /etc/apt/sources.list
fi
echo -e "\napt update; apt install ansible and python3 dependencies explained at:"
echo -e "https://github.com/iiab/iiab/tree/master/scripts/ansible.md\n"
apt update