From 3d9628ebb7f1b279628aac3a0c34ada427a887f4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 15 Feb 2019 17:10:59 +0100 Subject: [SSUS] Suppress warnings, install cmake --- satellit_upgrader/updater.template.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh index 4928e6f..4d70f2b 100644 --- a/satellit_upgrader/updater.template.sh +++ b/satellit_upgrader/updater.template.sh @@ -122,7 +122,7 @@ failprint () { aptupdate=false aptinst () { local pkg=$1 - if ! dpkg -l "$pkg" | grep -q "^ii\\s.*$pkg"; then + if ! dpkg -l "$pkg" 2> /dev/null | grep -q "^ii\\s.*$pkg"; then if ! $aptupdate; then echo "Updating apt db" failprint apt-get update || perror "Cannot run apt-get update" @@ -521,7 +521,7 @@ fi # ************* replace atftpd with tftpd-hpa ************** chg=false -if which "atftpd" &>/dev/null || dpkg-query -W -f='${db:Status-Abbrev}' "atftpd" | grep -q '^ii' \ +if which "atftpd" &>/dev/null || dpkg-query -W -f='${db:Status-Abbrev}' "atftpd" 2> /dev/null | grep -q '^ii' \ || ! which "in.tftpd" &>/dev/null; then if diffcp "tftpd/tftpd-hpa" "/etc/default/tftpd-hpa"; then echo "Replacing atftpd with tftpd-hpa" @@ -591,6 +591,7 @@ if [ -n "$TGZ_DNBD3" ]; then if [ "$cver" != "$nver" ]; then aptinst libjansson-dev aptinst libfuse-dev + aptinst cmake echo "Compiling new dnbd3-server binary..." cd "$tmpdir" mkdir build -- cgit v1.2.3-55-g7522