From dcda7e6ff6387aa07da9fdc2e170087c63281ccd Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 2 Mar 2020 20:32:40 +0100 Subject: [PATCH] redirect some output to logfile --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 3b7dc04..bcb1f56 100755 --- a/setup.sh +++ b/setup.sh @@ -256,7 +256,7 @@ fi then echo "Installing required packages: $packages" >> $LOGFILE apt-get update || true - if ! apt-get install -y $packages + if ! apt-get install -y $packages >> $LOGFILE 2>&1 then echo "Failed to install required packages: $install" >> $LOGFILE echo "Exiting ..." >> $LOGFILE @@ -267,9 +267,9 @@ fi if ! [ -f /usr/local/share/feed-adsbx ]; then rm -rf /tmp/readsb &>/dev/null || true - git clone --depth 1 https://github.com/adsbxchange/readsb.git /tmp/readsb + git clone --depth 1 https://github.com/adsbxchange/readsb.git /tmp/readsb >> $LOGFILE 2>&1 cd /tmp/readsb - apt install -y libncurses5-dev + apt install -y libncurses5-dev >> $LOGFILE 2>&1 make cp readsb /usr/local/share/feed-adsbx cd /tmp