mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-20 04:50:31 +02:00
aurral: replace bashio with jq to read /data/options.json
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
DOWNLOAD_FOLDER=$(bashio::config 'download_folder')
|
||||
WEEKLY_FLOW_SUFFIX=$(bashio::config 'weekly_flow_folder')
|
||||
DOWNLOAD_FOLDER=$(jq -r '.download_folder // "/share/aurral/downloads"' /data/options.json)
|
||||
WEEKLY_FLOW_SUFFIX=$(jq -r '.weekly_flow_folder // "weekly-flow"' /data/options.json)
|
||||
|
||||
export DOWNLOAD_FOLDER
|
||||
export WEEKLY_FLOW_FOLDER="${DOWNLOAD_FOLDER}/${WEEKLY_FLOW_SUFFIX}"
|
||||
|
||||
Reference in New Issue
Block a user