From 65dc5ae2d975a59d70411ae77dca49517aa7bda6 Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 3 Jul 2024 10:01:07 +0200 Subject: [PATCH] get logs in case of errors --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index c8627de..4f9d4da 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/restore b/scripts/restore index c4a8e81..d27d19d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 43c6b59..10d1a20 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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