mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Add switchToTesting script
This commit is contained in:
parent
9b14492b6d
commit
0a8ffe91f4
1 changed files with 19 additions and 0 deletions
19
switchtoTesting
Normal file
19
switchtoTesting
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Reference in a new issue