0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 09:38:34 +00:00

fix(netdata-updater.sh): ensure --non-interactive flag is passed during self-update ()

This commit is contained in:
Ilya Mashchenko 2024-10-15 14:59:11 +03:00 committed by GitHub
parent 696f2500f3
commit d8c5963e0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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