fix(netdata-updater.sh): ensure `--non-interactive` flag is passed during self-update (#18786)
Ilya Mashchenko committed
Oct 15, 2024 at 14:59 UTC
d8c5963e0bb5871d5370f0d27939da8d5582c2de
1 file changed
+3
-1
packaging/installer/netdata-updater.sh
+3
-1
@@ -590,7 +590,9 @@ self_update() {
590
export ENVIRONMENT_FILE="${ENVIRONMENT_FILE}"
591
force_update=""
592
[ "$NETDATA_FORCE_UPDATE" = "1" ] && force_update="--force-update"
593
- exec ./netdata-updater.sh --not-running-from-cron --no-updater-self-update "$force_update" --tmpdir-path "$(pwd)"
593
+ interactive=""
594
+ [ "$INTERACTIVE" = "0" ] && interactive="--non-interactive"
595
+ exec ./netdata-updater.sh --not-running-from-cron --no-updater-self-update "$force_update" "$interactive" --tmpdir-path "$(pwd)"
596
else
597
error "Failed to download newest version of updater script, continuing with current version."
598
fi