@cryptotaxi247 / netdata-1 / commits / 3b07293ed

Redirect dependency handling script output to logfile when running from updater. (#12341)

This should make updates quiet again.

Austin S. Hemmelgarn committed Mar 8, 2022 at 13:05 UTC 3b07293ede31cf3ddcdfb098469cf03583e672c3
1 file changed +2 -4
packaging/installer/netdata-updater.sh
+2 -4
@@ -147,12 +147,10 @@ install_build_dependencies() {
147 else
148 info "Running dependency handling script..."
149
150 - if [ "${INTERACTIVE}" -eq 0 ]; then
151 - opts="--dont-wait --non-interactive"
152 - fi
150 + opts="--dont-wait --non-interactive"
151
152 # shellcheck disable=SC2086
155 - if ! "${bash}" "${TMPDIR}/install-required-packages.sh" ${opts} netdata; then
153 + if ! "${bash}" "${TMPDIR}/install-required-packages.sh" ${opts} netdata >&3 2>&3; then
154 error "Installing build dependencies failed. The update should still work, but you might be missing some features."
155 fi
156 fi