From 0bcacbf1dc6d2af2104111e931704ef1c2fe0f61 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 28 Jul 2019 13:57:32 -0300 Subject: System upgrade: check for requirements at different places --- share/hydractl/dist-upgrade | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3