mirror of
https://github.com/netdata/netdata.git
synced 2025-04-28 22:52:30 +00:00
fix(netdata-updater.sh): ensure --non-interactive
flag is passed during self-update (#18786)
This commit is contained in:
parent
696f2500f3
commit
d8c5963e0b
1 changed files with 3 additions and 1 deletions
|
@ -590,7 +590,9 @@ self_update() {
|
||||||
export ENVIRONMENT_FILE="${ENVIRONMENT_FILE}"
|
export ENVIRONMENT_FILE="${ENVIRONMENT_FILE}"
|
||||||
force_update=""
|
force_update=""
|
||||||
[ "$NETDATA_FORCE_UPDATE" = "1" ] && force_update="--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
|
else
|
||||||
error "Failed to download newest version of updater script, continuing with current version."
|
error "Failed to download newest version of updater script, continuing with current version."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue