Skip to content

Commit

Permalink
feat: support new homeassistant directory
Browse files Browse the repository at this point in the history
* remains backwards compatible with `/config` directory
  • Loading branch information
jcwillox committed Jun 10, 2024
1 parent b49c914 commit 3e87c84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
flags:
drive-use-trash: false
dry_run: false
config_path: /config/rclone.conf
config_path: /homeassistant/rclone.conf
```
## Providers
Expand Down
2 changes: 1 addition & 1 deletion rclone_backup/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
exclude: []
flags: {}
dry_run: false
config_path: /config/rclone.conf
config_path: /homeassistant/rclone.conf
```
## Configuration
Expand Down
2 changes: 1 addition & 1 deletion rclone_backup/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ options:
exclude: []
flags: {}
dry_run: true
config_path: "/config/rclone.conf"
config_path: "/homeassistant/rclone.conf"
schema:
jobs:
- name: str?
Expand Down
6 changes: 5 additions & 1 deletion rclone_backup/rootfs/etc/cont-init.d/init.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/with-contenv bashio

CONFIG_PATH="/config/rclone.conf"
CONFIG_PATH="/homeassistant/rclone.conf"

# backwards compatible with config directory
ln -s "/homeassistant" "/config" \
|| bashio::log.warning "Failed linking common directory: /config"

if bashio::config.has_value "rclone_config"; then
# write rclone config from addon config
Expand Down

0 comments on commit 3e87c84

Please sign in to comment.