mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
Update 00-folders.sh
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
|
||||
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" /defaults/* || true
|
||||
|
||||
@@ -18,3 +23,7 @@ fi
|
||||
|
||||
# Make sure permissions are right
|
||||
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