From f1baf6b75e7f01e10f1c2cb93be94d902ba6021f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 26 Feb 2023 13:38:08 +0100 Subject: [PATCH] Update 00-global_var.sh --- .templates/00-global_var.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 6a910dd9e..fc71d25aa 100755 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -41,7 +41,11 @@ for KEYS in "${arr[@]}"; do # Export the variable to run scripts # ###################################### export "${KEYS}='${VALUE}'" - + # set .env + echo "$KEYS=$VALUE" >> /.env || true + # set /etc/environmemt + mkdir -p /etc + echo "$KEYS=$VALUE" >> /etc/environmemt # For non s6 if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null; fi if cat /etc/cont-init.d/*run* &>/dev/null; then sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null; fi