ssc-spc-ccoe-cei / gcp-tools

This repo is meant to be a submodule of the gcp-repo-template repository. https://github.com/ssc-spc-ccoe-cei/gcp-repo-template
3 stars 3 forks source link

chmod 755 setup-kcc.sh script - add vars.sh #48

Closed obriensystems closed 10 months ago

obriensystems commented 1 year ago

assigned to fmichaelobrien See testing in #32

root_@cloudshell:~/kcc-kls/20230719/gcp-tools/scripts/bootstrap (kcc-kls)$ ./setup-kcc.sh
-bash: ./setup-kcc.sh: Permission denied

add


# source variables
source vars.sh
fmichaelobrien commented 11 months ago

fix 755 shadow https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/issues/536

michael@cloudshell:~/_t (duet-ai-old)$ git clone https://github.com/ssc-spc-ccoe-cei/gcp-tools.git
Cloning into 'gcp-tools'...
remote: Enumerating objects: 337, done.
remote: Counting objects: 100% (192/192), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 337 (delta 88), reused 84 (delta 37), pack-reused 145
Receiving objects: 100% (337/337), 1.56 MiB | 19.76 MiB/s, done.
Resolving deltas: 100% (115/115), done.
michael@cloudshell:~/_t (duet-ai-old)$ cd gcp-tools/
devcontainer/     .git/             .github/          pipeline-samples/ scripts/          
michael@cloudshell:~/_t (duet-ai-old)$ cd gcp-tools/scripts/bootstrap/
michael@cloudshell:~/_t/gcp-tools/scripts/bootstrap (duet-ai-old)$ ls
configure-kcc-access.sh  README.md  setup-kcc.sh
michael@cloudshell:~/_t/gcp-tools/scripts/bootstrap (duet-ai-old)$ ls -la
total 28
drwxr-xr-x 2 michael michael 4096 Oct  1 22:40 .
drwxr-xr-x 6 michael michael 4096 Oct  1 22:40 ..
-rw-r--r-- 1 michael michael 2043 Oct  1 22:40 configure-kcc-access.sh
-rw-r--r-- 1 michael michael  726 Oct  1 22:40 .env.sample
-rw-r--r-- 1 michael michael 2993 Oct  1 22:40 README.md
-rw-r--r-- 1 michael michael 8151 Oct  1 22:40 setup-kcc.sh
michael@cloudshell:~/_t/gcp-tools/scripts/bootstrap (duet-ai-old)$ chmod 755 setup-kcc.sh 
michael@cloudshell:~/_t/gcp-tools/scripts/bootstrap (duet-ai-old)$ ls -la
total 28
drwxr-xr-x 2 michael michael 4096 Oct  1 22:40 .
drwxr-xr-x 6 michael michael 4096 Oct  1 22:40 ..
-rw-r--r-- 1 michael michael 2043 Oct  1 22:40 configure-kcc-access.sh
-rw-r--r-- 1 michael michael  726 Oct  1 22:40 .env.sample
-rw-r--r-- 1 michael michael 2993 Oct  1 22:40 README.md
-rwxr-xr-x 1 michael michael 8151 Oct  1 22:40 setup-kcc.sh