summaryrefslogtreecommitdiff
path: root/share/hydractl/system-upgrade
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-14 12:41:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-14 12:41:58 -0200
commit72f516c1b8946657c7a02e5b13b7732424732a66 (patch)
tree2f39462f205f5568e23923778ab982a91ada0586 /share/hydractl/system-upgrade
parentff02ee70857544db261125c83e39aff7fd892b0d (diff)
downloadhydra-72f516c1b8946657c7a02e5b13b7732424732a66.tar.gz
hydra-72f516c1b8946657c7a02e5b13b7732424732a66.tar.bz2
Making system-upgrade more verbose
Diffstat (limited to 'share/hydractl/system-upgrade')
-rwxr-xr-xshare/hydractl/system-upgrade11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade
index 770f058..b26d90a 100755
--- a/share/hydractl/system-upgrade
+++ b/share/hydractl/system-upgrade
@@ -28,10 +28,13 @@ release="`facter lsbdistcodename`"
nextrelease="`hydra_next_debian_release $release`"
# Ensure puppet is stopped during the process
+echo "Disabling puppet during the upgrade..."
service puppet stop
sed -i -e 's/START=yes/START=no/' /etc/default/puppet
# Configure apt for the next debian release
+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
@@ -42,12 +45,20 @@ rm -f /etc/apt/preferences.d/*
rm -f /etc/apt/preferences
# Update package listing and download new packages
+echo ""
+echo "Updating package listing..."
apt-get update
+echo ""
+echo "Downloading packages..."
apt-get dist-upgrade -d
# Upgrade the system
+echo ""
+echo "Upgrading the system..."
apt-get dist-upgrade
# Enable puppet again
+echo ""
+echo "Starting puppet again..."
sed -i -e 's/START=no/START=yes/' /etc/default/puppet
service puppet start