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

get logs in case of errors

This commit is contained in:
Kayou 2024-07-03 10:01:07 +02:00 committed by GitHub
parent 61109608e7
commit 65dc5ae2d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
pushd "$NETDATA_TMPDIR"
# the installer.sh script will append "netdata" after the --install-prefix arg
if ! ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel > "$tmplog" 2>&1; then
tail -n50 $tmplog
cat $tmplog
ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
fi
popd

View file

@ -34,7 +34,7 @@ tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
pushd "$NETDATA_TMPDIR"
# the installer.sh script will append "netdata" after the --install-prefix arg
if ! ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel > "$tmplog" 2>&1; then
tail -n50 $tmplog
cat $tmplog
ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
fi
popd

View file

@ -39,7 +39,7 @@ tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
pushd "$NETDATA_TMPDIR"
# the installer.sh script will append "netdata" after the --install-prefix arg
if ! ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel > "$tmplog" 2>&1; then
tail -n50 $tmplog
cat $tmplog
ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
fi
popd