summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-14 17:45:32 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-14 17:45:32 -0200
commit4dea1cb9be50c61fb5a8d72946073869ea25bec8 (patch)
treeffb934b8250fb81fcc1830508960f63958940a82
parent9d437cf542f1d53b3174acbc2c1cc0c4f2ba6e8c (diff)
downloadhydra-4dea1cb9be50c61fb5a8d72946073869ea25bec8.tar.gz
hydra-4dea1cb9be50c61fb5a8d72946073869ea25bec8.tar.bz2
Do not remove preferences on upgrade
-rwxr-xr-xshare/hydractl/system-upgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade
index b5f374c..53de2b3 100755
--- a/share/hydractl/system-upgrade
+++ b/share/hydractl/system-upgrade
@@ -37,12 +37,12 @@ sed -i -e 's/START=yes/START=no/' /etc/default/puppet
echo ""
echo "Updating apt configuration..."
sed -i -e "s/$release/$nextrelease/g" /etc/apt/sources.list
+sed -i -e "s/$release/$nextrelease/g" /etc/apt/preferences
sed -i -e 's|^deb http://backports.debian.org/debian-backports|#deb http://backports.debian.org/debian-backports|' /etc/apt/sources.list
# These will be generated by puppet and can be safely removed
rm -f /etc/apt/sources.list.d/*
rm -f /etc/apt/preferences.d/*
-rm -f /etc/apt/preferences
# Update package listing and download new packages
echo ""