mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Add another apt source/mirror if RaspiOS, which can be flaky
This commit is contained in:
parent
57d5014693
commit
08bcc002a1
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ 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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue