You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
585 B
16 lines
585 B
UMBREL_DATA_DIR="${UMBREL_ROOT}/data"
|
|
UMBREL_DATA_STORAGE_AUDIOBOOKS_DIR="${UMBREL_DATA_DIR}/storage/downloads/audiobooks"
|
|
UMBREL_DATA_STORAGE_PODCASTS_DIR="${UMBREL_DATA_DIR}/storage/downloads/podcasts"
|
|
DESIRED_OWNER="1000:1000"
|
|
|
|
if [[ ! -d "${UMBREL_DATA_STORAGE_AUDIOBOOKS_DIR}" ]]; then
|
|
mkdir -p "${UMBREL_DATA_STORAGE_AUDIOBOOKS_DIR}"
|
|
|
|
chown "${DESIRED_OWNER}" "${UMBREL_DATA_STORAGE_AUDIOBOOKS_DIR}"
|
|
fi
|
|
|
|
if [[ ! -d "${UMBREL_DATA_STORAGE_PODCASTS_DIR}" ]]; then
|
|
mkdir -p "${UMBREL_DATA_STORAGE_PODCASTS_DIR}"
|
|
|
|
chown "${DESIRED_OWNER}" "${UMBREL_DATA_STORAGE_PODCASTS_DIR}"
|
|
fi
|