diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-19 23:32:15 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-19 23:32:15 -0400 |
commit | 9740e38cd1e14ee7af44befa506999c9b5486b75 (patch) | |
tree | 96613eae81df4306d1a85b8a5faec3de8fde9e50 /bin | |
parent | 1664fb8685813e09313c822c70b3ce0eda3ff6fa (diff) | |
download | puppet-tozt-9740e38cd1e14ee7af44befa506999c9b5486b75.tar.gz puppet-tozt-9740e38cd1e14ee7af44befa506999c9b5486b75.zip |
silence apt
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/helpers/launch-mail | 10 |
1 files changed, 7 insertions, 3 deletions
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 |