aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-07-28 13:57:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-07-28 13:57:32 -0300
commit0bcacbf1dc6d2af2104111e931704ef1c2fe0f61 (patch)
treebb4e61e96a5097653f68b0bee04395211f348f01
parentb4f2e1defee9d2f65a949bdcfa0b438948cb7d26 (diff)
downloadhydra-0bcacbf1dc6d2af2104111e931704ef1c2fe0f61.tar.gz
hydra-0bcacbf1dc6d2af2104111e931704ef1c2fe0f61.tar.bz2
System upgrade: check for requirements at different places
-rwxr-xr-xshare/hydractl/dist-upgrade7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/hydractl/dist-upgrade b/share/hydractl/dist-upgrade
index 5c518cb..9ac3301 100755
--- a/share/hydractl/dist-upgrade
+++ b/share/hydractl/dist-upgrade
@@ -39,7 +39,7 @@ function hydra_system_upgrade_stage {
# Set and check upgrade environment
function hydra_system_upgrade_env {
# Check for requirements
- for req in facter apt-show-versions; do
+ for req in facter; do
hydra_install_package $req
done
@@ -183,6 +183,11 @@ function hydra_system_upgrade_custom {
# Cleanup procedures
function hydra_system_upgrade_cleanup {
+ # Check for requirements
+ for req in apt-show-versions; do
+ hydra_install_package $req
+ done
+
apt-get autoremove --purge -y
apt-get clean