mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01: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