This commit is contained in:
Alexandre
2023-05-07 10:38:36 +02:00
committed by GitHub
parent 40d8d7e783
commit b786b99a9a
3 changed files with 15 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ for KEYS in "${arr[@]}"; do
if cat /etc/cont-init.d/*run* &>/dev/null; then sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null; fi
# For s6
if [ -d /var/run/s6/container_environment ]; then printf "%s" "${VALUE}" > /var/run/s6/container_environment/"${KEYS}"; fi
printf "%s" "\n${KEYS}=\"${VALUE}\"" >> ~/.bashrc
echo "export ${KEYS}=\"${VALUE}\"" >> ~/.bashrc
done

View File

@@ -131,7 +131,7 @@ while IFS= read -r line; do
sed -i "1a export $KEYS=\'$VALUE\'" /scripts/*run* 2>/dev/null || true
# Export to s6
if [ -d /var/run/s6/container_environment ]; then printf "%s" "${VALUE}" > /var/run/s6/container_environment/"${KEYS}"; fi
printf "%s" "\n${KEYS}=\"${VALUE}\"" >> ~/.bashrc
echo "export ${KEYS}=\"${VALUE}\"" >> ~/.bashrc
# Show in log
if ! bashio::config.false "verbose"; then bashio::log.blue "$KEYS=\'$VALUE\'"; fi
else