This commit is contained in:
Alexandre
2021-12-03 22:11:38 +01:00
parent b99a7618db
commit 7012a57bda
5 changed files with 8 additions and 10 deletions

View File

@@ -83,8 +83,8 @@ while IFS= read -r line; do
if [[ $line =~ ^.+[=].+$ ]]; then
export $line
# Export the variable
[ -f /etc/services.d/*/*run* ] && sed -i "1a export $line" /etc/services.d/*/*run*
[ -f /scripts/*run* ] && sed -i "1a export $line" /scripts/*run*
sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null || sed -i "1a export $line" /scripts/*run*
# Show in log
bashio::log.blue "$line"
else