Update run.sh

This commit is contained in:
Alexandre
2021-08-01 10:54:13 +02:00
committed by GitHub
parent 39611d44fd
commit 038c56f6e7

View File

@@ -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