mirror of
https://github.com/YunoHost-Apps/netdata_ynh.git
synced 2024-09-03 19:46:33 +02:00
Update remove: simplify unecessary file descriptor magic...
This commit is contained in:
parent
470c5c61fc
commit
e3fd4e5447
1 changed files with 4 additions and 9 deletions
|
@ -39,16 +39,11 @@ chmod +x $tmpdir/$UNINSTALL_SCRIPT
|
||||||
|
|
||||||
# Move outside the directory (which will be removed)
|
# Move outside the directory (which will be removed)
|
||||||
pushd $tmpdir
|
pushd $tmpdir
|
||||||
# create a temporary file for the log
|
# create a temporary file for the log
|
||||||
tmp=$(mktemp /tmp/netdata-uninstaller-log-XXXXXX.log)
|
tmplog=$(mktemp /tmp/netdata-uninstaller-log-XXXXXX.log)
|
||||||
# open fd 3 and send it to tmp
|
|
||||||
exec 3>${tmp}
|
|
||||||
|
|
||||||
# Execute the uninstall script
|
# Execute the uninstall script
|
||||||
./${UNINSTALL_SCRIPT} --yes --force --env $install_dir/etc/netdata/.environment >&3 2>&3
|
./${UNINSTALL_SCRIPT} --yes --force --env $install_dir/etc/netdata/.environment >$tmplog 2>$tmplog
|
||||||
|
|
||||||
# close fd 3
|
|
||||||
exec 3<&-
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Remove MySQL netdata user
|
# Remove MySQL netdata user
|
||||||
|
|
Loading…
Add table
Reference in a new issue