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