summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-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