From 9fba87e35d2f6e7a7ea65164ae3d4224f223d64f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cl0b3e=20=E2=98=81=EF=B8=8F?= <3452074+clobee@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:38:04 +0200 Subject: [PATCH] Update collect-logs-rsync.sh.txt (#9259) Helps with echo(s) not displaying content of variables --- source/scripts/collect-logs-rsync.sh.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/scripts/collect-logs-rsync.sh.txt b/source/scripts/collect-logs-rsync.sh.txt index bcac37637f..5b0992966d 100644 --- a/source/scripts/collect-logs-rsync.sh.txt +++ b/source/scripts/collect-logs-rsync.sh.txt @@ -15,7 +15,7 @@ CLEANUP_AGGREGATE_DIR=false if [ $COLLECT_LOGS == true ]; then -echo 'COLLECT_LOGS set to $COLLECT_LOGS. Beginning the process...' +echo "COLLECT_LOGS set to $COLLECT_LOGS. Beginning the process..." for app_server in $(dig +short -4 appserver.$ENV.$SITE_UUID.drush.in); do rsync -rlvz --size-only --ipv4 --progress -e "ssh -p 2222" "$ENV.$SITE_UUID@$app_server:logs" "app_server_$app_server" @@ -31,7 +31,7 @@ echo 'skipping the collection of logs..' fi if [ $AGGREGATE_NGINX == true ]; then -echo 'AGGREGATE_NGINX set to $AGGREGATE_NGINX. Starting the process of combining nginx-access logs...' +echo "AGGREGATE_NGINX set to $AGGREGATE_NGINX. Starting the process of combining nginx-access logs..." mkdir aggregate-logs for d in $(ls -d app*/logs/nginx); do @@ -63,6 +63,6 @@ echo "AGGREGATE_NGINX set to $AGGREGATE_NGINX. So we're done." fi if [ $CLEANUP_AGGREGATE_DIR == true ]; then -echo 'CLEANUP_AGGREGATE_DIR set to $CLEANUP_AGGREGATE_DIR. Cleaning up the aggregate-logs directory' +echo "CLEANUP_AGGREGATE_DIR set to $CLEANUP_AGGREGATE_DIR. Cleaning up the aggregate-logs directory" find ./aggregate-logs/ -name 'nginx-access*' -print -exec rm {} \; -fi \ No newline at end of file +fi