diff --git a/photoprism/rootfs/run.sh b/photoprism/rootfs/run.sh index 8d8a0392f..9a5f5923f 100644 --- a/photoprism/rootfs/run.sh +++ b/photoprism/rootfs/run.sh @@ -135,10 +135,12 @@ export PHOTOPRISM_IMPORT_PATH=$(bashio::config 'IMPORT_PATH') export PHOTOPRISM_BACKUP_PATH=$(bashio::config 'BACKUP_PATH') # Test configs -for variabletest in PHOTOPRISM_STORAGE_PATH PHOTOPRISM_ORIGINALS_PATH PHOTOPRISM_IMPORT_PATH PHOTOPRISM_BACKUP_PATH +for variabletest in $PHOTOPRISM_STORAGE_PATH $PHOTOPRISM_ORIGINALS_PATH $PHOTOPRISM_IMPORT_PATH $PHOTOPRISM_BACKUP_PATH do # Check if path exists -if [ ! bashio::fs.directory_exists $variabletest ]; then +if bashio::fs.directory_exists $variabletest +then +else bashio::log.info "Path $variabletest doesn't exist. Creating it now..." mkdir -p $variable || bashio::log.fatal "Can't create $variabletest path" fi