From f5bbd8b1c4a054f9513f03bdb10dee780a5f383d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 26 Dec 2025 20:34:02 -0300 Subject: Feat: provision: debian: add PROVISION_UPGRADED variable --- share/provision/debian/basic | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'share/provision/debian/basic') diff --git a/share/provision/debian/basic b/share/provision/debian/basic index cfd2122..e93dc2d 100755 --- a/share/provision/debian/basic +++ b/share/provision/debian/basic @@ -27,10 +27,14 @@ MIRROR="$3" APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y" # Upgrade -if which hydractl &> /dev/null; then - hydractl upgrade -else - sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean || exit 1 +if [ "$PROVISION_UPGRADED" != "1" ]; then + if which hydractl &> /dev/null; then + hydractl upgrade + else + sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean || exit 1 + fi + + export PROVISION_UPGRADED="1" fi # Dependencies -- cgit v1.2.3