Skip to content

Commit

Permalink
fix(netdata-updater.sh): ensure --non-interactive flag is passed du…
Browse files Browse the repository at this point in the history
…ring self-update (netdata#18786)
  • Loading branch information
ilyam8 authored Oct 15, 2024
1 parent 696f250 commit d8c5963
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packaging/installer/netdata-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,9 @@ self_update() {
export ENVIRONMENT_FILE="${ENVIRONMENT_FILE}"
force_update=""
[ "$NETDATA_FORCE_UPDATE" = "1" ] && force_update="--force-update"
exec ./netdata-updater.sh --not-running-from-cron --no-updater-self-update "$force_update" --tmpdir-path "$(pwd)"
interactive=""
[ "$INTERACTIVE" = "0" ] && interactive="--non-interactive"
exec ./netdata-updater.sh --not-running-from-cron --no-updater-self-update "$force_update" "$interactive" --tmpdir-path "$(pwd)"
else
error "Failed to download newest version of updater script, continuing with current version."
fi
Expand Down

0 comments on commit d8c5963

Please sign in to comment.