From f1b88a641a0473557594459e227b94c7cc52fb73 Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 3 Jul 2024 09:45:28 +0200 Subject: [PATCH] fix install --- scripts/install | 5 ++++- scripts/restore | 5 ++++- scripts/upgrade | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index b618e7f..31ba72f 100644 --- a/scripts/install +++ b/scripts/install @@ -28,7 +28,10 @@ tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log) pushd "$NETDATA_TMPDIR" # the installer.sh script will append "netdata" after the --install-prefix arg - ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel >"$tmplog" 2>"$tmplog" || ynh_die "FAILED TO COMPILE/INSTALL NETDATA" + if !./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel > "$tmplog" 2>&1; then + tail -n50 $tmplog + ynh_die "FAILED TO COMPILE/INSTALL NETDATA" + fi popd # Specific configuration diff --git a/scripts/restore b/scripts/restore index ce3653a..b1c96d2 100644 --- a/scripts/restore +++ b/scripts/restore @@ -33,7 +33,10 @@ tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log) pushd "$NETDATA_TMPDIR" # the installer.sh script will append "netdata" after the --install-prefix arg - ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel >"$tmplog" 2>"$tmplog" || ynh_die "FAILED TO COMPILE/INSTALL NETDATA" + if !./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel > "$tmplog" 2>&1; then + tail -n50 $tmplog + ynh_die "FAILED TO COMPILE/INSTALL NETDATA" + fi popd # Specific configuration diff --git a/scripts/upgrade b/scripts/upgrade index eb4a0d5..89f8bab 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,7 +38,10 @@ tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log) pushd "$NETDATA_TMPDIR" # the installer.sh script will append "netdata" after the --install-prefix arg - ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud >"$tmplog" 2>"$tmplog" || ynh_die "FAILED TO COMPILE/INSTALL NETDATA" + if !./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel > "$tmplog" 2>&1; then + tail -n50 $tmplog + ynh_die "FAILED TO COMPILE/INSTALL NETDATA" + fi popd # Specific configuration