From 038c56f6e77947a158dfa8323249030001a798df Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 1 Aug 2021 10:54:13 +0200 Subject: [PATCH] Update run.sh --- photoprism/rootfs/run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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