Skip to content

Commit 2436261

Browse files
authored
Remove GCS read access verification
we can only have write access
1 parent 944829c commit 2436261

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

entrypoint.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -eo pipefail
23

34
backup_tool="/google-cloud-sdk/bin/gsutil"
45
backup_options="-m rsync -r"
@@ -21,10 +22,6 @@ if [ ! -z "$GOOGLE_APPLICATION_CREDENTIALS" ]; then
2122
/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
2223
fi
2324

24-
# verify gs config - ls bucket
25-
$backup_tool ls "gs://${GS_URL%%/*}" > /dev/null
26-
echo "Google storage bucket access verified."
27-
2825
mkdir -p /tmp/backup/
2926
rm -rf -- /tmp/backup/*
3027

0 commit comments

Comments
 (0)