From bb99f27e5c0b15dbcf3cc1e630e4ed9452dcf701 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 17 Nov 2021 20:06:01 +0100 Subject: [PATCH] Delete 00-aaa_options_export.sh --- .../rootfs/scripts/00-aaa_options_export.sh | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 enedisgateway2mqtt/rootfs/scripts/00-aaa_options_export.sh diff --git a/enedisgateway2mqtt/rootfs/scripts/00-aaa_options_export.sh b/enedisgateway2mqtt/rootfs/scripts/00-aaa_options_export.sh deleted file mode 100644 index 4c4744c6e..000000000 --- a/enedisgateway2mqtt/rootfs/scripts/00-aaa_options_export.sh +++ /dev/null @@ -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