Skip to content

Commit

Permalink
Update IPFILTER and remove redundant environment variables
Browse files Browse the repository at this point in the history
This commit updates the way IPFILTER is set in the Dockerfile, now reading it directly from the options.json file. This change provides a more dynamic way of setting the IPFILTER.

Additionally, this commit removes redundant environment variables from the config.yaml file. These variables were previously set twice, both in the environment and options sections. This redundancy has been eliminated for cleaner code and easier maintenance.
  • Loading branch information
skrashevich committed Nov 11, 2023
1 parent da83fd2 commit 3dab8b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion double-take/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export STORAGE_PATH=$(bashio::config 'STORAGE_PATH')
export CONFIG_PATH=$(bashio::config 'CONFIG_PATH')
export SECRETS_PATH=$(bashio::config 'SECRETS_PATH')
export MEDIA_PATH=$(bashio::config 'MEDIA_PATH')
export IPFILTER=$(bashio::config 'IPFILTER')
export IPFILTER=$(cat /data/options.json | jq '.IPFILTER')

cd /double-take && /bin/bash ./entrypoint.sh
EOT
Expand Down
5 changes: 0 additions & 5 deletions double-take/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ map:
- config:rw
environment:
HA_ADDON: "true"
STORAGE_PATH: "/config/double-take"
CONFIG_PATH: "/config/double-take"
SECRETS_PATH: "/config/double-take"
MEDIA_PATH: "/media/double-take"
IPFILTER: "true"
options:
STORAGE_PATH: "/config/double-take"
CONFIG_PATH: "/config/double-take"
Expand Down

0 comments on commit 3dab8b4

Please sign in to comment.