Update 91-configuration.sh

This commit is contained in:
Alexandre
2021-02-16 12:14:54 +01:00
committed by GitHub
parent a46bcfd0d0
commit 723995384e

View File

@@ -1,3 +1,16 @@
#!/usr/bin/with-contenv bashio
# Empty
###########
# FOLDERS #
###########
FILES=&(bashio::config "FilesFolder")
COMICS=&(bashio::config "ComicsFolder")
BOOKS=&(bashio::config "BooksFolder")
jq ".filesPaths.pathString = $FILES" /config/ubooquity/preferences.json
jq ".comicsPaths.pathString = $COMICS" /config/ubooquity/preferences.json
jq ".booksPaths.pathString = $BOOKS" /config/ubooquity/preferences.json
mkdir -p FILES COMICS BOOKS
bashio::log.info "Default folders set. Files : $FILES ; Comics : $COMICS ; Books : $BOOKS"