Update 00-folders.sh

This commit is contained in:
Alexandre
2022-03-21 15:56:11 +01:00
committed by GitHub
parent 4a8dedcbfe
commit e6c875d31c

View File

@@ -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