mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-07 16:15:55 +02:00
Update run.sh
This commit is contained in:
@@ -138,7 +138,7 @@ export PHOTOPRISM_BACKUP_PATH=$(bashio::config 'BACKUP_PATH')
|
|||||||
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
|
do
|
||||||
# Check if path exists
|
# Check if path exists
|
||||||
if [ ! bashio::fs.directory_exists($variabletest) ]; then
|
if [ ! bashio::fs.directory_exists $variabletest ]; then
|
||||||
bashio::log.info "Path $variabletest doesn't exist. Creating it now..."
|
bashio::log.info "Path $variabletest doesn't exist. Creating it now..."
|
||||||
mkdir -p $variable || bashio::log.fatal "Can't create $variabletest path"
|
mkdir -p $variable || bashio::log.fatal "Can't create $variabletest path"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user