Delete 00-aaa_options_export.sh

This commit is contained in:
Alexandre
2021-11-17 20:06:01 +01:00
committed by GitHub
parent bd3a5085e1
commit bb99f27e5c

View File

@@ -1,16 +0,0 @@
#!/bin/bash
###################################
# Export all addon options as env #
###################################
# For all keys in options.json
JSONSOURCE="/data/options.json"
# Export keys as env variables
mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})
for KEYS in ${arr[@]}; do
# export key
export $(echo "${KEYS}=$(jq .$KEYS ${JSONSOURCE})")
echo "All addon configs exported as env variables"
done