From 470c5c61fc98a3b4d26b66391b2964d539a872d9 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Sat, 6 Jan 2024 20:17:47 +0100 Subject: [PATCH] Update install: simplify unecessary file descriptor magic... --- scripts/install | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index f692241..f53a148 100644 --- a/scripts/install +++ b/scripts/install @@ -36,18 +36,13 @@ yunohost service add $app --description "Real-time performance and health monito ynh_script_progression --message="Executing Netdata installer..." --weight=10 # 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} +tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log) # Launch netdata installation in /opt directory pushd $NETDATA_TMPDIR - ./netdata-installer.sh --install-prefix /opt --dont-wait --disable-cloud --disable-telemetry --stable-channel >&3 2>&3 || ynh_die "FAILED TO COMPILE/INSTALL NETDATA" + ./netdata-installer.sh --install-prefix /opt --dont-wait --disable-cloud --disable-telemetry --stable-channel >$tmplog 2>$tmplog || ynh_die "FAILED TO COMPILE/INSTALL NETDATA" popd -# close fd 3 -exec 3<&- - # Specific configuration configure_netdata