Update 99-configuration

This commit is contained in:
Alexandre
2021-10-19 07:06:50 +02:00
committed by GitHub
parent 348e0a99a2
commit 177995689b

View File

@@ -14,7 +14,10 @@
#Set import dir
IMPORTDIR='"'$(bashio::config 'import_dir')'"'
sed -i "2 i\export IMPORTER_DIR=$IMPORTDIR" /etc/services.d/papermerge/run
#clean data
sed -i '/IMPORTER_DIR/d' /data/config/papermerge.conf.py || true
#add data
sed -i "2 i\IMPORTER_DIR = $MEDIADIR" /data/config/papermerge.conf.py
bashio::log.info "Import dir set to $IMPORTDIR"
##################