-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15a2161
commit 2eb072a
Showing
2 changed files
with
42 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
echo "----" | ||
echo "Patching sources.list to enable testing repository..." | ||
echo "----" | ||
for FILE in `ls /etc/apt/sources.list /etc/apt/sources.list.d/*` | ||
do | ||
#!/usr/bin/env bash | ||
|
||
cat << EOF | ||
---- | ||
Patching sources.list to enable testing repository... | ||
---- | ||
EOF | ||
|
||
readarray -d '' apt_files < <(find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0) | ||
for FILE in "${apt_files[@]}"; do | ||
# (Append 'testing' at the end of lines starting with the yunohost repo..) | ||
sed -i 's@^deb.* http://forge.yunohost.org.*@& testing@' $FILE | ||
sed -i 's@^deb.* http://forge.yunohost.org.*@& testing@' "$FILE" | ||
done | ||
|
||
echo "----" | ||
echo "Running 'apt-get update'" | ||
echo "----" | ||
cat << EOF | ||
---- | ||
Running 'apt-get update' | ||
---- | ||
EOF | ||
apt-get update | ||
|
||
echo "----" | ||
echo "Running 'apt-get dist-upgrade'" | ||
echo "----" | ||
cat << EOF | ||
---- | ||
Running 'apt-get dist-upgrade' | ||
---- | ||
EOF | ||
apt-get dist-upgrade -y | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
echo "----" | ||
echo "Patching sources.list to enable testing repository..." | ||
echo "----" | ||
for FILE in `ls /etc/apt/sources.list /etc/apt/sources.list.d/*` | ||
do | ||
#!/usr/bin/env bash | ||
|
||
cat << EOF | ||
---- | ||
Patching sources.list to enable unstable repository... | ||
---- | ||
EOF | ||
|
||
readarray -d '' apt_files < <(find /etc/apt/sources.list /etc/apt/sources.list.d -type f -print0) | ||
for FILE in "${apt_files[@]}"; do | ||
# (Append 'testing' at the end of lines starting with the yunohost repo..) | ||
sed -i 's@^deb http://forge.yunohost.org.*@& testing unstable@' $FILE | ||
sed -i 's@^deb http://forge.yunohost.org.*@& testing unstable@' "$FILE" | ||
done | ||
|
||
echo "----" | ||
echo "Running 'apt-get update'" | ||
echo "----" | ||
cat << EOF | ||
---- | ||
Running 'apt-get update' | ||
---- | ||
EOF | ||
apt-get update | ||
|
||
echo "----" | ||
echo "Running 'apt-get dist-upgrade'" | ||
echo "----" | ||
cat << EOF | ||
---- | ||
Running 'apt-get dist-upgrade' | ||
---- | ||
EOF | ||
apt-get dist-upgrade -y | ||
|