mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Update 91-configuration.sh
This commit is contained in:
@@ -3,13 +3,18 @@
|
|||||||
###########
|
###########
|
||||||
# FOLDERS #
|
# FOLDERS #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
FILES=$(jq ".filesPaths[0].pathString" /config/ubooquity/preferences.json)
|
||||||
|
COMICS=$(jq ".comicsPaths[0].pathString" /config/ubooquity/preferences.json)
|
||||||
|
BOOKS=$(jq ".booksPaths[0].pathString" /config/ubooquity/preferences.json)
|
||||||
|
|
||||||
|
mkdir -p $FILES $COMICS $BOOKS /config/ubooquity
|
||||||
|
chown -R abc:abc $FILES $COMICS $BOOKS /config/ubooquity
|
||||||
|
|
||||||
#FILES='"'$(bashio::config "FilesFolder")'"'
|
#FILES='"'$(bashio::config "FilesFolder")'"'
|
||||||
#COMICS='"'$(bashio::config "ComicsFolder")'"'
|
#COMICS='"'$(bashio::config "ComicsFolder")'"'
|
||||||
#BOOKS='"'$(bashio::config "BooksFolder")'"'
|
#BOOKS='"'$(bashio::config "BooksFolder")'"'
|
||||||
|
|
||||||
#CURRENTFILES=$(jq ".filesPaths[0].pathString" /config/ubooquity/preferences.json)
|
|
||||||
#CURRENTCOMICS=$(jq ".comicsPaths[0].pathString" /config/ubooquity/preferences.json)
|
|
||||||
#CURRENTBOOKS=$(jq ".booksPaths[0].pathString" /config/ubooquity/preferences.json)
|
|
||||||
|
|
||||||
#sed -i "s|$CURRENTFILES|$FILES|g" /config/ubooquity/preferences.json
|
#sed -i "s|$CURRENTFILES|$FILES|g" /config/ubooquity/preferences.json
|
||||||
#sed -i "s|$CURRENTCOMICS|$COMICS|g" /config/ubooquity/preferences.json
|
#sed -i "s|$CURRENTCOMICS|$COMICS|g" /config/ubooquity/preferences.json
|
||||||
|
|||||||
Reference in New Issue
Block a user