1.54.1.sh: Fix erroneously disabled package sources

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias K 2024-05-02 20:41:01 +02:00
parent f7aa18f541
commit c75fa44117
No known key found for this signature in database
GPG Key ID: 44FD368932E645C1
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
39
21
52
77
71
80
90
29
6
62

10
updates/1.54.1.sh Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
echo "Reenable erroneously disabled package sources"
for aptlist in /etc/apt/sources.list /etc/apt/sources.list.d/{php.list,armbian.list,raspi.list}
do
[ -f "$aptlist" ] && sed -i -e "s/#deb /deb /g" "$aptlist"
done
echo "done"
sudo apt-get update && sudo apt-get upgrade -y