http backports

This commit is contained in:
Bob Mottram 2014-09-23 13:31:58 +01:00
parent 4f45f6157b
commit 8432148dcf
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ function enable_backports {
if grep -Fxq "enable_backports" $COMPLETION_FILE; then
return
fi
if ! grep -Fxq "deb https://$DEBIAN_REPO/debian jessie-backports main" /etc/apt/sources.list; then
echo "deb https://$DEBIAN_REPO/debian jessie-backports main" >> /etc/apt/sources.list
if ! grep -Fxq "deb http://$DEBIAN_REPO/debian jessie-backports main" /etc/apt/sources.list; then
echo "deb http://$DEBIAN_REPO/debian jessie-backports main" >> /etc/apt/sources.list
fi
echo 'enable_backports' >> $COMPLETION_FILE
}