mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 00:34:16 +01:00
12 lines
418 B
Bash
12 lines
418 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
###########
|
|
# 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 || true
|
|
chown -R abc:abc $FILES $COMICS $BOOKS /config/ubooquity || true
|