Skip to content

Commit

Permalink
deploy: a4a8b89
Browse files Browse the repository at this point in the history
  • Loading branch information
suecharo committed Aug 22, 2024
1 parent 676abdc commit c1dce74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
9 changes: 7 additions & 2 deletions assets/index-D2O8c59g.js → assets/index-BveI0Wpb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,13 @@ function do_backup() {
local create_bucket=$(echo $S3_CONFIG | jq -r '.createBucket')

if [[ $create_bucket == "true" ]]; then
log "Create bucket: $bucket_name"
aws s3api create-bucket --bucket $bucket_name --endpoint-url $endpoint_url
local exists=$(aws s3api head-bucket --bucket $bucket_name --endpoint-url $endpoint_url 2>&1 || true)
if [[ $exists == "" ]]; then
log "Bucket $bucket_name already exists, so skip create"
else
log "Create bucket: $bucket_name"
aws s3api create-bucket --bucket $bucket_name --endpoint-url $endpoint_url
fi
fi

local count=$(echo $BACKUP_FILES | jq -r ".${OPTION_POLICY} | length")
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Zuke</title>
<script type="module" crossorigin src="/backup-system/assets/index-D2O8c59g.js"></script>
<script type="module" crossorigin src="/backup-system/assets/index-BveI0Wpb.js"></script>
<link rel="stylesheet" crossorigin href="/backup-system/assets/index-OTM_HQSa.css">
</head>

Expand Down

0 comments on commit c1dce74

Please sign in to comment.