Fix photoprism config migration path

This commit is contained in:
Alexandre
2026-01-09 10:01:14 +01:00
parent 2d44ee234a
commit 6e2b5029f0
4 changed files with 9 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ fi
bashio::log.info "Preparing scripts"
echo "... creating structure"
mkdir -p /config/photoprism
mkdir -p /config
mkdir -p \
/data/photoprism/originals \
/data/photoprism/import \
@@ -24,8 +24,8 @@ echo "... setting permissions"
chmod -R 777 /data/photoprism
chown -Rf photoprism:photoprism /data/photoprism
chmod -Rf a+rwx /data/photoprism
chmod -R 777 /config/photoprism
chown -Rf photoprism:photoprism /config/photoprism
chmod -R 777 /config
chown -Rf photoprism:photoprism /config
for line in BACKUP_PATH IMPORT_PATH ORIGINALS_PATH STORAGE_PATH; do
mkdir -p "$line"
chmod -R 777 "$line"

View File

@@ -3,8 +3,8 @@
set -e
slug=photoprism
new_config_location="/config/photoprism/config.yaml"
new_config_dir="$(dirname "$new_config_location")"
new_config_location="/config"
new_config_dir="$new_config_location"
mkdir -p "$new_config_dir"
if bashio::config.has_value "CONFIG_LOCATION"; then