mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 91-configuration.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user