Update 99-configuration.sh

fixed variable definitions/usages for being able using SMB shares
This commit is contained in:
fkhofmann
2022-02-13 11:23:04 +01:00
committed by GitHub
parent 7702a2d7a6
commit 5665f506a8

View File

@@ -6,19 +6,19 @@
################## ##################
#Set media dir #Set media dir
MEDIADIR='"'$(bashio::config 'storage_dir')'"' MEDIADIR=$(bashio::config 'storage_dir')
#clean data #clean data
sed -i '/MEDIA_DIR/d' /data/config/papermerge.conf.py sed -i '/MEDIA_DIR/d' /data/config/papermerge.conf.py
#add data #add data
sed -i "2 i\MEDIA_DIR = $MEDIADIR" /data/config/papermerge.conf.py sed -i "2 i\MEDIA_DIR = \"$MEDIADIR\"" /data/config/papermerge.conf.py
bashio::log.info "Storage dir set to $MEDIADIR" bashio::log.info "Storage dir set to $MEDIADIR"
#Set import dir #Set import dir
IMPORTDIR='"'$(bashio::config 'import_dir')'"' IMPORTDIR=$(bashio::config 'import_dir')
#clean data #clean data
sed -i '/IMPORTER_DIR/d' /data/config/papermerge.conf.py || true sed -i '/IMPORTER_DIR/d' /data/config/papermerge.conf.py || true
#add data #add data
sed -i "2 i\IMPORTER_DIR = $MEDIADIR" /data/config/papermerge.conf.py sed -i "2 i\IMPORTER_DIR = \"$IMPORTDIR\"" /data/config/papermerge.conf.py
bashio::log.info "Import dir set to $IMPORTDIR" bashio::log.info "Import dir set to $IMPORTDIR"
################## ##################