We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 234390d + 10cbdf8 commit 23dccb6Copy full SHA for 23dccb6
switchtoStable
@@ -0,0 +1,28 @@
1
+#!/usr/bin/env bash
2
+
3
+cat << EOF
4
+----
5
+Patching sources.list to disable testing repository...
6
7
+EOF
8
9
+readarray -d '' apt_files < <(find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0)
10
+for FILE in "${apt_files[@]}"; do
11
+ # Remove 'testing' and 'unstable' in lines using the yunohost repo
12
+ sed -i 's|^\(deb.*yunohost.org.*\) testing\(.*\)$|\1\2|' "$FILE"
13
+ sed -i 's|^\(deb.*yunohost.org.*\) unstable\(.*\)$|\1\2|' "$FILE"
14
+done
15
16
17
18
+Running 'apt-get update'
19
20
21
+apt-get update
22
23
24
25
+Running 'apt-get dist-upgrade'
26
27
28
+apt-get dist-upgrade -y
0 commit comments