mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
13 lines
512 B
Bash
13 lines
512 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
|
|
###########
|
|
# FOLDERS #
|
|
###########
|
|
FILES=$(jq ".filesPaths[0].pathString" /config/addons_config/ubooquity/preferences.json)
|
|
COMICS=$(jq ".comicsPaths[0].pathString" /config/addons_config/ubooquity/preferences.json)
|
|
BOOKS=$(jq ".booksPaths[0].pathString" /config/addons_config/ubooquity/preferences.json)
|
|
|
|
mkdir -p $FILES $COMICS $BOOKS /config/addons_config/ubooquity || true
|
|
chown -R abc:abc $FILES $COMICS $BOOKS /config/addons_config/ubooquity || true
|