From e328eee8772a1988090f1ba96bef74daaca7d370 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Wed, 29 Dec 2021 18:15:11 +0100 Subject: [PATCH] Fix too verbose restoration --- scripts/restore | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index bd0dbfb..38fc509 100644 --- a/scripts/restore +++ b/scripts/restore @@ -73,12 +73,21 @@ ynh_script_progression --message="Reinstalling Netdata..." --weight=18 # Download, check integrity, uncompress and patch the source from app.src NETDATA_TMPDIR=$(mktemp -d) -ynh_setup_source "$NETDATA_TMPDIR" +ynh_setup_source --dest_dir="$NETDATA_TMPDIR" + +# create a temporary file for the log +tmp=$(mktemp /tmp/netdata-updater-log-XXXXXX.log) +# open fd 3 and send it to tmp +exec 3>${tmp} # Launch netdata installation in /opt directory cd $NETDATA_TMPDIR -./netdata-installer.sh --install /opt --dont-wait +./netdata-installer.sh --install /opt --dont-wait --disable-cloud >&3 2>&3 || ynh_die "FAILED TO COMPILE/INSTALL NETDATA" +# close fd 3 +exec 3<&- + +# Specific configuration configure_netdata #=================================================