From eb1e7bcb39e0a15a1f61735f192c6c7ff753a350 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Thu, 21 Jan 2021 13:21:32 +0500 Subject: [PATCH] [ubuntu] Set HOMEBREW_NO_AUTO_UPDATE and HOMEBREW_NO_INSTALL_CLEANUP (#2470) * Set HOMEBREW_NO_AUTO_UPDATE and HOMEBREW_NO_INSTALL_CLEANUP * replace HOMEBREW_NO_INSTALL_CLEANUP with HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS --- images/linux/scripts/installers/homebrew.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/images/linux/scripts/installers/homebrew.sh b/images/linux/scripts/installers/homebrew.sh index c065f3d99..00d8157f5 100644 --- a/images/linux/scripts/installers/homebrew.sh +++ b/images/linux/scripts/installers/homebrew.sh @@ -18,6 +18,8 @@ brew shellenv|grep 'export HOMEBREW'|sed -E 's/^export (.*);$/\1/' | sudo tee -a # add brew executables locations to PATH brew_path=$(brew shellenv|grep '^export PATH' |sed -E 's/^export PATH="([^$]+)\$.*/\1/') prependEtcEnvironmentPath "$brew_path" +setEtcEnvironmentVariable HOMEBREW_NO_AUTO_UPDATE 1 +setEtcEnvironmentVariable HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS 3650 # Validate the installation ad hoc echo "Validate the installation reloading /etc/environment"