Skip to content

Commit 8cbede5

Browse files
fix: Migrate gsutil usage to gcloud storage (#148)
1 parent cf6403d commit 8cbede5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

backend/tools/xwiki_manual_deploy_gcp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if [ -z "${XWIKI_MIGRATE_FILE_BUCKET}" ]; then
5050
XWIKI_MIGRATE_FILE_BUCKET="legacy-xwiki-installed-flavor"
5151
fi
5252

53-
gsutil -m cp \
53+
gcloud storage cp \
5454
"gs://$XWIKI_MIGRATE_FILE_BUCKET/xwiki_14.10.4_flavor/extension_14.10.4.tar.gz" \
5555
"gs://$XWIKI_MIGRATE_FILE_BUCKET/xwiki_14.10.4_flavor/file_14.10.4.tar.gz" \
5656
"gs://$XWIKI_MIGRATE_FILE_BUCKET/xwiki_14.10.4_flavor/xwiki_mysql_db_bk_14.10.4.tar.gz" \

deploy_solution.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ read -r -p "Once done, press Enter to continue: "
8585

8686
echo "Creating the cloud storage bucket if it does not exist already"
8787
BUCKET_NAME="${PROJECT_ID}_infra_manager_staging"
88-
if ! gsutil ls "gs://$BUCKET_NAME" &> /dev/null; then
89-
gsutil mb "gs://$BUCKET_NAME/"
88+
if ! gcloud storage ls "gs://$BUCKET_NAME" &> /dev/null; then
89+
gcloud storage buckets create "gs://$BUCKET_NAME/"
9090
echo "Bucket $BUCKET_NAME created successfully."
9191
else
9292
echo "Bucket $BUCKET_NAME already exists. Moving on to the next step."

deploy_via_trigger.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ EOF
9494

9595
echo "Creating the cloud storage bucket if it does not exist already"
9696
BUCKET_NAME="${PROJECT_ID}_infra_manager_staging"
97-
if ! gsutil ls "gs://$BUCKET_NAME" &> /dev/null; then
98-
gsutil mb "gs://$BUCKET_NAME/"
97+
if ! gcloud storage ls "gs://$BUCKET_NAME" &> /dev/null; then
98+
gcloud storage buckets create "gs://$BUCKET_NAME/"
9999
echo "Bucket $BUCKET_NAME created successfully."
100100
else
101101
echo "Bucket $BUCKET_NAME already exists. Moving on to the next step."

0 commit comments

Comments
 (0)