mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-10 16:01:00 +02:00
Create 00-folders.sh
This commit is contained in:
16
photoprism/rootfs/etc/cont-init.d/00-folders.sh
Normal file
16
photoprism/rootfs/etc/cont-init.d/00-folders.sh
Normal 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
|
||||||
Reference in New Issue
Block a user