Merge pull request #1758 from SkynetLabs/make-backup-script-executable

make backup script executable
This commit is contained in:
Ivaylo Novakov 2022-02-22 13:01:39 +01:00 committed by GitHub
commit 82bb85666c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
scripts/backup-aws-s3.sh Normal file → Executable file
View File

@ -22,7 +22,7 @@ done
# create bucket skynet-backup-[portaldomain] (portal domain is stripped of all non alnum characters) # create bucket skynet-backup-[portaldomain] (portal domain is stripped of all non alnum characters)
# ie. siasky.net backup results in skynet-backup-siaskynet basket name # ie. siasky.net backup results in skynet-backup-siaskynet basket name
BUCKET_NAME=$(echo skynet-backup-${PORTAL_DOMAIN} | tr -cd '[[:alnum:]]') BUCKET_NAME=$(echo skynet-backup-${PORTAL_DOMAIN} | tr -cd '[[:alnum:]]-')
# create server prefix # create server prefix
if test -z "${SERVER_DOMAIN}"; then if test -z "${SERVER_DOMAIN}"; then