Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
pull_request:
types: [opened, reopened]

permissions: {}

jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC1008
Empty file modified .gitignore
100755 → 100644
Empty file.
Empty file modified LICENSE.md
100755 → 100644
Empty file.
Empty file modified amazon-s3-backup/Dockerfile
100755 → 100644
Empty file.
Empty file modified amazon-s3-backup/config.json
100755 → 100644
Empty file.
Empty file modified amazon-s3-backup/icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions amazon-s3-backup/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ local_backups_to_keep="$(bashio::config 'local_backups_to_keep' '3')"
monitor_path="/backup"
jq_filter=".backups|=sort_by(.date)|.backups|reverse|.[$local_backups_to_keep:]|.[].slug"

export AWS_ACCESS_KEY_ID="$(bashio::config 'aws_access_key')"
export AWS_SECRET_ACCESS_KEY="$(bashio::config 'aws_secret_access_key')"
AWS_ACCESS_KEY_ID="$(bashio::config 'aws_access_key')"
export AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY="$(bashio::config 'aws_secret_access_key')"
export AWS_SECRET_ACCESS_KEY
export AWS_REGION="$bucket_region"

bashio::log.debug "Using AWS CLI version: '$(aws --version)'"
Expand All @@ -35,4 +37,4 @@ else
bashio::log.info "Will not delete any local backups since 'delete_local_backups' is set to 'false'"
fi

bashio::log.info "Finished Amazon S3 Backup."
bashio::log.info "Finished Amazon S3 Backup."
Empty file modified repository.json
100755 → 100644
Empty file.