|
17 | 17 | # CREATED: 10/15/2012 09:49:37 PM WEST |
18 | 18 | #====================================================================================================================== |
19 | 19 | set -o nounset # Treat unset variables as an error |
20 | | -__ScriptVersion="2015.02.27" |
| 20 | +__ScriptVersion="2015.02.28" |
21 | 21 | __ScriptName="bootstrap-salt.sh" |
22 | 22 |
|
23 | 23 | #====================================================================================================================== |
@@ -2039,13 +2039,9 @@ _eof |
2039 | 2039 | fi |
2040 | 2040 |
|
2041 | 2041 | # Debian Backports |
2042 | | - if [ "$(grep -R 'backports.debian.org' /etc/apt)" = "" ]; then |
2043 | | - echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> \ |
| 2042 | + if [ "$(grep -R 'squeeze-backports' /etc/apt | grep -v "^#")" = "" ]; then |
| 2043 | + echo "deb http://http.debian.net/debian-backports squeeze-backports main" >> \ |
2044 | 2044 | /etc/apt/sources.list.d/backports.list |
2045 | | - |
2046 | | - # Add the backports key |
2047 | | - gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553 |
2048 | | - gpg -a --export 8B48AD6246925553 | apt-key add - |
2049 | 2045 | fi |
2050 | 2046 |
|
2051 | 2047 | # Saltstack's Stable Debian repository |
@@ -2098,6 +2094,12 @@ install_debian_7_deps() { |
2098 | 2094 | # Install Keys |
2099 | 2095 | __apt_get_install_noinput debian-archive-keyring && apt-get update |
2100 | 2096 |
|
| 2097 | + # Debian Backports |
| 2098 | + if [ "$(grep -R 'wheezy-backports' /etc/apt | grep -v "^#")" = "" ]; then |
| 2099 | + echo "deb http://http.debian.net/debian wheezy-backports main" >> \ |
| 2100 | + /etc/apt/sources.list.d/backports.list |
| 2101 | + fi |
| 2102 | + |
2101 | 2103 | # Saltstack's Stable Debian repository |
2102 | 2104 | if [ "$(grep -R 'wheezy-saltstack' /etc/apt)" = "" ]; then |
2103 | 2105 | echo "deb http://debian.saltstack.com/debian wheezy-saltstack main" >> \ |
|
0 commit comments