aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/system-upgrade7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade
index 53de2b3..40dc352 100755
--- a/share/hydractl/system-upgrade
+++ b/share/hydractl/system-upgrade
@@ -56,6 +56,13 @@ apt-get dist-upgrade -d -y
echo ""
echo "Upgrading the system..."
apt-get dist-upgrade
+
+if [ "$?" != "0" ]; then
+ echo "Upgrade failed. Please fix it manually and run this command again."
+ exit 1
+fi
+
+# Remove unused packages
apt-get autoremove
# Enable puppet again