From 2eeba0b2ccbb29a55b4241132b6d4c8ce63aad6c Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Thu, 19 Oct 2023 22:36:41 -0400 Subject: [PATCH] Silence docker output. --- project_defaults.sh | 4 ---- www/generate_certs.sh | 2 +- www/stop_docker_stacks.sh | 4 ++-- www/stub/ghost_yml.sh | 2 +- www/stub/gitea_yml.sh | 4 ++-- www/stub/nextcloud_yml.sh | 2 +- www/stub/nginx_yml.sh | 2 +- www/stub/nostr_yml.sh | 2 +- 8 files changed, 9 insertions(+), 13 deletions(-) diff --git a/project_defaults.sh b/project_defaults.sh index 5ce2816..7c04f67 100755 --- a/project_defaults.sh +++ b/project_defaults.sh @@ -27,12 +27,8 @@ export NEXTCLOUD_MYSQL_ROOT_PASSWORD= export GITEA_MYSQL_ROOT_PASSWORD= export DUPLICITY_BACKUP_PASSPHRASE= - - DEFAULT_DB_IMAGE="mariadb:10.11.2-jammy" - - # run the docker stack. export GHOST_IMAGE="ghost:5.53.3" diff --git a/www/generate_certs.sh b/www/generate_certs.sh index 67a5d2d..47ca4ca 100755 --- a/www/generate_certs.sh +++ b/www/generate_certs.sh @@ -3,7 +3,7 @@ set -e # let's do a refresh of the certificates. Let's Encrypt will not run if it's not time. -docker pull certbot/certbot:latest +docker pull -q certbot/certbot:latest # iterate over each domain and call certbot for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do diff --git a/www/stop_docker_stacks.sh b/www/stop_docker_stacks.sh index 47337f1..af18982 100755 --- a/www/stop_docker_stacks.sh +++ b/www/stop_docker_stacks.sh @@ -23,7 +23,7 @@ for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do STACK_NAME="$DOMAIN_IDENTIFIER-$APP-$LANGUAGE_CODE" if docker stack list --format "{{.Name}}" | grep -q "$STACK_NAME"; then - docker stack rm "$STACK_NAME" + docker stack rm "$STACK_NAME" > /dev/null sleep 2 fi @@ -45,7 +45,7 @@ done # remove the nginx stack if docker stack list --format "{{.Name}}" | grep -q reverse-proxy; then - docker stack rm reverse-proxy + docker stack rm reverse-proxy > /dev/null sleep 10 fi diff --git a/www/stub/ghost_yml.sh b/www/stub/ghost_yml.sh index ea12325..004bc21 100755 --- a/www/stub/ghost_yml.sh +++ b/www/stub/ghost_yml.sh @@ -4,7 +4,7 @@ set -eu cd "$(dirname "$0")" -docker pull "$GHOST_IMAGE" +docker pull -q "$GHOST_IMAGE" DEPLOY_STACK=false for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do diff --git a/www/stub/gitea_yml.sh b/www/stub/gitea_yml.sh index ab0904a..0fc257b 100755 --- a/www/stub/gitea_yml.sh +++ b/www/stub/gitea_yml.sh @@ -4,8 +4,8 @@ set -eu cd "$(dirname "$0")" -docker pull "$GITEA_IMAGE" -docker pull "$GITEA_DB_IMAGE" +docker pull -q "$GITEA_IMAGE" +docker pull -q "$GITEA_DB_IMAGE" for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do export DOMAIN_NAME="$DOMAIN_NAME" diff --git a/www/stub/nextcloud_yml.sh b/www/stub/nextcloud_yml.sh index 8b3de22..46afc4c 100755 --- a/www/stub/nextcloud_yml.sh +++ b/www/stub/nextcloud_yml.sh @@ -4,7 +4,7 @@ set -eu cd "$(dirname "$0")" -docker pull "$NEXTCLOUD_IMAGE" +docker pull -q "$NEXTCLOUD_IMAGE" for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do diff --git a/www/stub/nginx_yml.sh b/www/stub/nginx_yml.sh index 7d792de..e9c45ef 100755 --- a/www/stub/nginx_yml.sh +++ b/www/stub/nginx_yml.sh @@ -3,7 +3,7 @@ set -e cd "$(dirname "$0")" -docker pull "$NGINX_IMAGE" +docker pull -q "$NGINX_IMAGE" #https://github.com/fiatjaf/expensive-relay # NOSTR RELAY WHICH REQUIRES PAYMENTS. diff --git a/www/stub/nostr_yml.sh b/www/stub/nostr_yml.sh index c1a2036..b50d7b9 100755 --- a/www/stub/nostr_yml.sh +++ b/www/stub/nostr_yml.sh @@ -3,7 +3,7 @@ set -eu cd "$(dirname "$0")" -docker pull "$NOSTR_RELAY_IMAGE" +docker pull -q "$NOSTR_RELAY_IMAGE" for DOMAIN_NAME in ${DOMAIN_LIST//,/ }; do export DOMAIN_NAME="$DOMAIN_NAME"