Skip to content

Commit 099eeb2

Browse files
committed
ensure logfile exists
1 parent c2decc9 commit 099eeb2

File tree

1 file changed

+5
-0
lines changed
  • features/src/utils/opt/devcontainer/bin/creds/s3/gh

1 file changed

+5
-0
lines changed

features/src/utils/opt/devcontainer/bin/creds/s3/gh/generate.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ _creds_github_generate() {
5555
--idp-url "${AWS_IDP_URL:-https://token.gha-runners.nvidia.com}"
5656
);
5757
58+
sudo mkdir -m 0775 -p /var/log/devcontainer-utils;
59+
sudo touch /var/log/devcontainer-utils/creds-s3.log;
60+
sudo chmod 0664 /var/log/devcontainer-utils/creds-s3.log;
61+
sudo chgrp crontab /var/log/devcontainer-utils/creds-s3.log;
62+
5863
for org in "${user_orgs[@]}"; do
5964
generated_at="$(date '+%s')";
6065
if gh nv-gha-aws org "${org}" "${nv_gha_aws_args[@]}" >"${HOME}/.aws/credentials" 2>>/var/log/devcontainer-utils/creds-s3.log; then

0 commit comments

Comments
 (0)