diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/system-upgrade | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade index c94216a..516063d 100755 --- a/share/hydractl/system-upgrade +++ b/share/hydractl/system-upgrade @@ -124,13 +124,6 @@ function hydra_system_upgrade_upgrade { exit 1 fi - hydra_system_upgrade_stage cleanup -} - -# Cleanup procedures -function hydra_system_upgrade_cleanup { - apt-get autoremove -y --purge - apt-get clean hydra_system_upgrade_stage custom } @@ -138,11 +131,18 @@ function hydra_system_upgrade_cleanup { function hydra_system_upgrade_custom { # Custom jessie stuff if [ "$nextrelease" == "jessie" ]; then - # We're going masterless, so no puppet service - apt-get remove puppet + # We're going masterless, so no puppet and old services + apt-get purge puppet 'munin*' 'nagios*' fi hydractl trac-upgrade + hydra_system_upgrade_stage cleanup +} + +# Cleanup procedures +function hydra_system_upgrade_cleanup { + apt-get autoremove -y --purge + apt-get clean #hydra_system_upgrade_stage puppet } |