1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/netdata_ynh.git synced 2024-09-03 19:46:33 +02:00

Fix too verbose restoration

This commit is contained in:
Jimmy Monin 2021-12-29 18:15:11 +01:00
parent a76b82f50a
commit e328eee877

View file

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