Create 00-folders.sh

This commit is contained in:
Alexandre
2023-04-23 17:28:04 +02:00
committed by GitHub
parent 1856314d56
commit 8c72e512eb

View File

@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
bashio::log.info "Preparing scripts"
echo "... creating structure"
mkdir -p \
/data/photoprism/originals \
/data/photoprism/import \
/data/photoprism/storage/config \
/data/photoprism/backup \
/data/photoprism/storage/cache
echo "... setting permissions"
chmod -R 777 /data/photoprism
chown -Rf photoprism:photoprism /data/photoprism
chmod -Rf a+rwx /data/photoprism