Skip to content

Commit

Permalink
Change chmod opening permissions to a chown.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin committed Feb 23, 2022
1 parent 2b00a1d commit 49d4133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcr/scripts/test-vm/harvest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 49d4133

Please sign in to comment.