mirror of
https://github.com/YunoHost-Apps/netdata_ynh.git
synced 2024-09-03 19:46:33 +02:00
Update upgrade: simplify unecessary file descriptor magic...
This commit is contained in:
parent
e3fd4e5447
commit
d4485f1312
1 changed files with 2 additions and 7 deletions
|
@ -41,17 +41,12 @@ then
|
||||||
[ ! -z "${pids}" ] && kill -USR1 ${pids}
|
[ ! -z "${pids}" ] && kill -USR1 ${pids}
|
||||||
|
|
||||||
# create a temporary file for the log
|
# create a temporary file for the log
|
||||||
tmp=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
|
tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
|
||||||
# open fd 3 and send it to tmp
|
|
||||||
exec 3>${tmp}
|
|
||||||
|
|
||||||
# Launch netdata installation in /opt directory
|
# Launch netdata installation in /opt directory
|
||||||
pushd $NETDATA_TMPDIR
|
pushd $NETDATA_TMPDIR
|
||||||
./netdata-installer.sh --install-prefix /opt --dont-wait --disable-cloud >&3 2>&3 || ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
|
./netdata-installer.sh --install-prefix /opt --dont-wait --disable-cloud >$tmplog 2>$tmplog || ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# close fd 3
|
|
||||||
exec 3<&-
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Specific configuration
|
# Specific configuration
|
||||||
|
|
Loading…
Add table
Reference in a new issue