mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-30 09:50:31 +02:00
Fix photoprism config migration path
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user