From 49d4133c09598c81a15cc2dc093d762616c14655 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 23 Feb 2022 21:32:05 +0000 Subject: [PATCH] Change chmod opening permissions to a chown. --- dcr/scripts/test-vm/harvest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dcr/scripts/test-vm/harvest.sh b/dcr/scripts/test-vm/harvest.sh index a9e28e6629..fa50076289 100644 --- a/dcr/scripts/test-vm/harvest.sh +++ b/dcr/scripts/test-vm/harvest.sh @@ -12,7 +12,7 @@ set -euxo pipefail ssh -o "StrictHostKeyChecking no" "$1"@"$2" "sudo tar --exclude='journal/*' --exclude='omsbundle' --exclude='omsagent' --exclude='mdsd' --exclude='scx*' --exclude='*.so' --exclude='*__LinuxDiagnostic__*' --exclude='*.zip' --exclude='*.deb' --exclude='*.rpm' -czf logs-$2.tgz /var/log /var/lib/waagent/ /etc/waagent.conf" # Some distros do not have "other" permissions (e.g., mariner1.0), add them here. -ssh -o "StrictHostKeyChecking no" "$1"@"$2" "sudo chmod o+rwx logs-$2.tgz" +ssh -o "StrictHostKeyChecking no" "$1"@"$2" "sudo chown $1 logs-$2.tgz" # Create directory if doesn't exist mkdir -p "$3"