mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-13 17:40:31 +02:00
Update and rename paperless_ng/rootfs/runtmp to paperless_ng/rootfs/etc/cont-init.d/90-config_yaml
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/usr/bin/env bashio
|
||||||
|
|
||||||
set +u
|
|
||||||
set +e
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# INITIALIZATION #
|
# INITIALIZATION #
|
||||||
##################
|
##################
|
||||||
@@ -66,17 +63,10 @@ for word in $(parse_yaml "$CONFIGSOURCE" ""); do
|
|||||||
word=${word//[\"\']/}
|
word=${word//[\"\']/}
|
||||||
# Data validation
|
# Data validation
|
||||||
if [[ $word =~ ^.+[=].+$ ]]; then
|
if [[ $word =~ ^.+[=].+$ ]]; then
|
||||||
export $word # Export the variable
|
sed -i "1a export $word" /etc/services.d/*/run # Export the variable
|
||||||
bashio::log.blue "$word"
|
bashio::log.blue "$word"
|
||||||
else
|
else
|
||||||
bashio::log.fatal "$word does not follow the structure KEY=text, it will be ignored and removed from the config"
|
bashio::log.fatal "$word does not follow the structure KEY=text, it will be ignored and removed from the config"
|
||||||
sed -i "/$word/ d" ${CONFIGSOURCE}
|
sed -i "/$word/ d" ${CONFIGSOURCE}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
##############
|
|
||||||
# Launch App #
|
|
||||||
##############
|
|
||||||
echo " "
|
|
||||||
bashio::log.info "Starting the app"
|
|
||||||
echo " "
|
|
||||||
Reference in New Issue
Block a user