From 9740e38cd1e14ee7af44befa506999c9b5486b75 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 19 Oct 2018 23:32:15 -0400 Subject: silence apt --- bin/helpers/launch-mail | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/helpers/launch-mail b/bin/helpers/launch-mail index 5198173..ffcaa80 100755 --- a/bin/helpers/launch-mail +++ b/bin/helpers/launch-mail @@ -38,6 +38,10 @@ remote() { ssh root@"$host" "$@" } +apt() { + remote env DEBIAN_FRONTEND=noninteractive apt-get -yq "$@" +} + ensure_conf_exists() { if remote test -d "$conf_location"; then remote "cd '$conf_location' && git pull" @@ -52,9 +56,9 @@ while ! remote true; do sleep 5 done -remote apt-get update -remote apt-get upgrade -remote apt-get install git puppet +apt update +apt upgrade +apt install git puppet ensure_conf_exists scp -r /mnt/puppet/mail/ root@"$host":/usr/local/share/puppet-tozt/mail/secret/files -- cgit v1.2.3-54-g00ecf