Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix aws-cli path permission #1080

Merged
merged 3 commits into from
Oct 3, 2024
Merged

fix aws-cli path permission #1080

merged 3 commits into from
Oct 3, 2024

Conversation

andrleite
Copy link
Contributor

Summary

This will fix the aws-cli path permission.

Ticket Link

Fixes https://mattermost.atlassian.net/browse/CLD-8390

Release Note

None

@mm-cloud-bot mm-cloud-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Oct 1, 2024
@@ -4,6 +4,10 @@ set -euo pipefail
# ensure $HOME exists and is accessible by group 0 (we don't know what the runtime UID will be)
mkdir -p ${HOME}
chown ${USER_UID}:0 ${HOME}
chown ${USER_UID}:0 /mattermost-cloud
# ensure /.aws exists and is accessible by group USER_UID
mkdir /.aws
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the -p flag, otherwise if the directory already exists this will throw an error and the script will fail because of set -e line at the top

@andrleite andrleite merged commit 435cd00 into master Oct 3, 2024
5 checks passed
@andrleite andrleite deleted the fix-aws-cli-path branch October 3, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants