@cryptotaxi247 / netdata-1 / commits / 3f1a1bd55

fix(netdata-updater.sh): ensure tmpdir-path argument is always passed (#19289)

Ilya Mashchenko committed Dec 27, 2024 at 20:08 UTC 3f1a1bd55eabb63f8365ed1072241f468efffe41
1 file changed +7 -5
packaging/installer/netdata-updater.sh
+7 -5
@@ -586,11 +586,13 @@ self_update() {
586 if _safe_download "https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/netdata-updater.sh" ./netdata-updater.sh; then
587 chmod +x ./netdata-updater.sh || exit 1
588 export ENVIRONMENT_FILE="${ENVIRONMENT_FILE}"
589 - force_update=""
590 - [ "$NETDATA_FORCE_UPDATE" = "1" ] && force_update="--force-update"
591 - interactive=""
592 - [ "$INTERACTIVE" = "0" ] && interactive="--non-interactive"
593 - exec ./netdata-updater.sh --not-running-from-cron --no-updater-self-update "$force_update" "$interactive" --tmpdir-path "$(pwd)"
589 +
590 + cmd="./netdata-updater.sh --not-running-from-cron --no-updater-self-update"
591 + [ "$NETDATA_FORCE_UPDATE" = "1" ] && cmd="$cmd --force-update"
592 + [ "$INTERACTIVE" = "0" ] && cmd="$cmd --non-interactive"
593 + cmd="$cmd --tmpdir-path $(pwd)"
594 +
595 + exec $cmd
596 else
597 error "Failed to download newest version of updater script, continuing with current version."
598 fi