diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-09-22 18:23:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-09-22 18:23:58 -0300 |
commit | c36794e899731be16f1045a9ae19878813fd9896 (patch) | |
tree | abbfbfb6d69b2e43b1748822cfbfb2b5c5964bdd /share/hydractl/backports | |
parent | fec2db557dcad1f52a1ffa8b612629a0b8b4c054 (diff) | |
download | hydra-c36794e899731be16f1045a9ae19878813fd9896.tar.gz hydra-c36794e899731be16f1045a9ae19878813fd9896.tar.bz2 |
Action changes
Diffstat (limited to 'share/hydractl/backports')
-rwxr-xr-x | share/hydractl/backports | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/share/hydractl/backports b/share/hydractl/backports index dbf9ec1..9771d72 100755 --- a/share/hydractl/backports +++ b/share/hydractl/backports @@ -1,7 +1,11 @@ #!/bin/bash +# +# Add backports to souces.list. +# -# TODO: check debian version and if backports is enabled # TODO: check backports key signature -echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list -apt-get update ; apt-get install debian-backports-keyring ; apt-get update -apt-get -t lenny-backports install puppet puppetmaster +if ! grep -q -e "^deb http://backports.debian.org/debian"; then + echo "deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free" >> /etc/apt/sources.list + apt-get update ; apt-get install debian-backports-keyring ; apt-get update + apt-get -t lenny-backports install puppet puppetmaster +fi |