install_script/switchtoTesting
ljf (zamentur) 15caedaa3a
[fix] Support signed-by syntax (#71)
* [fix] Support signed-by syntax

deb [signed-by=/usr/share/keyrings/yunohost-archive-keyring.gpg]

* Update switchtoTesting

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2023-01-03 00:36:30 +01:00

19 lines
464 B
Text

echo "----"
echo "Patching sources.list to enable testing repository..."
echo "----"
for FILE in `ls /etc/apt/sources.list /etc/apt/sources.list.d/*`
do
# (Append 'testing' at the end of lines starting with the yunohost repo..)
sed -i 's@^deb.* http://forge.yunohost.org.*@& testing@' $FILE
done
echo "----"
echo "Running 'apt-get update'"
echo "----"
apt-get update
echo "----"
echo "Running 'apt-get dist-upgrade'"
echo "----"
apt-get dist-upgrade -y