From 72f516c1b8946657c7a02e5b13b7732424732a66 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 14 Feb 2013 12:41:58 -0200 Subject: Making system-upgrade more verbose --- share/hydractl/system-upgrade | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'share/hydractl') 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 -- cgit v1.2.3