summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-13 13:29:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-13 14:04:32 +0000
commitba552f5a3f2b2b476ae7cf4e43d482c2c8c7f8be (patch)
tree68ca4a4a8744afc3f6081e8b907cd29ae29047c3
parentAdding dehydrated debconf question to run dehydrated. (diff)
downloadopen-infrastructure-service-tools-ba552f5a3f2b2b476ae7cf4e43d482c2c8c7f8be.tar.xz
open-infrastructure-service-tools-ba552f5a3f2b2b476ae7cf4e43d482c2c8c7f8be.zip
Silencing downloading of tsig in dehydrated-tools.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xdebian/open-infrastructure-dehydrated-tools.postinst18
1 files changed, 14 insertions, 4 deletions
diff --git a/debian/open-infrastructure-dehydrated-tools.postinst b/debian/open-infrastructure-dehydrated-tools.postinst
index c571adb..698016b 100755
--- a/debian/open-infrastructure-dehydrated-tools.postinst
+++ b/debian/open-infrastructure-dehydrated-tools.postinst
@@ -236,22 +236,32 @@ EOF
case "${TSIG}" in
http*)
# tsig is a URL
- if command -v wget "${TSIG}" -O /dev/null > /dev/null 2>&1
+ echo -n "Downloading tsig.key from '${TSIG}'..."
+
+ if command -v wget -q "${TSIG}" -O /dev/null > /dev/null 2>&1
then
rm -f /etc/dehydrated/tsig.key
- wget "${TSIG}" -O /etc/dehydrated/tsig.key
+ wget -q "${TSIG}" -O /etc/dehydrated/tsig.key
chmod 0600 /etc/dehydrated/tsig.key
TSIG_FILE="/etc/dehydrated/tsig.key"
- elif command -v curl "${TSIG}" -o /dev/null > /dev/null 2>&1
+ elif command -v curl -s "${TSIG}" -o /dev/null > /dev/null 2>&1
then
rm -f /etc/dehydrated/tsig.key
- curl "${TSIG}" -o /etc/dehydrated/tsig.key
+ curl -s "${TSIG}" -o /etc/dehydrated/tsig.key
chmod 0600 /etc/dehydrated/tsig.key
TSIG_FILE="/etc/dehydrated/tsig.key"
+ else
+ echo
+ echo "W: need wget or curl" >&2
+ fi
+
+ if [ -n "${TSIG_FILE}" ]
+ then
+ echo " done."
fi
;;