mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Update 00-folders.sh
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
|
|
||||||
CONFIGLOCATION=$(bashio::config "CONFIG_LOCATION")
|
CONFIGLOCATION=$(bashio::config "CONFIG_LOCATION")
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -d "$CONFIGLOCATION" ]; then
|
||||||
|
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
||||||
|
fi
|
||||||
|
|
||||||
sed -i "s| /data/config| $CONFIGLOCATION|g" /etc/cont-init.d/*
|
sed -i "s| /data/config| $CONFIGLOCATION|g" /etc/cont-init.d/*
|
||||||
sed -i "s| /data/config| $CONFIGLOCATION|g" /defaults/* || true
|
sed -i "s| /data/config| $CONFIGLOCATION|g" /defaults/* || true
|
||||||
|
|
||||||
@@ -18,3 +23,7 @@ fi
|
|||||||
|
|
||||||
# Make sure permissions are right
|
# Make sure permissions are right
|
||||||
chown -R "$(id -u):$(id -g)" "$CONFIGLOCATION"
|
chown -R "$(id -u):$(id -g)" "$CONFIGLOCATION"
|
||||||
|
|
||||||
|
# Exporting config location
|
||||||
|
bashio::log.info "Config file can be found in $CONFIGLOCATION"
|
||||||
|
sed -i "1a export PAPERMERGE_CONFIG_FILE=$CONFIGLOCATION" /etc/services.d/papermerge/run
|
||||||
|
|||||||
Reference in New Issue
Block a user