From 0a8ffe91f4c6498c86efb76ad2dc5bac4dba7a3e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 23 Aug 2021 13:16:28 +0200 Subject: [PATCH] Add switchToTesting script --- switchtoTesting | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 switchtoTesting diff --git a/switchtoTesting b/switchtoTesting new file mode 100644 index 0000000..2f61d16 --- /dev/null +++ b/switchtoTesting @@ -0,0 +1,19 @@ +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 +