From 5490bbfb63779aa82b41c5f44f36c82077b3a502 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 2 Jan 2022 19:29:22 +0100 Subject: [PATCH] #!/usr/bin/with-contenv bashio --- joplin/rootfs/scripts/00-global_var.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/joplin/rootfs/scripts/00-global_var.sh b/joplin/rootfs/scripts/00-global_var.sh index dc39300ec..b68e3f08b 100644 --- a/joplin/rootfs/scripts/00-global_var.sh +++ b/joplin/rootfs/scripts/00-global_var.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/with-contenv bashio ################################### # Export all addon options as env # @@ -16,7 +16,7 @@ for KEYS in "${arr[@]}"; do line="${KEYS}=${VALUE//[\"\']/}" # Use locally if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi - export line + export $line # Export the variable to run scripts line="${KEYS}=${VALUE//[\"\']/} &>/dev/null" sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null || sed -i "1a export $line" /scripts/*run*