Skip to content

Commit

Permalink
Fix data migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Jan 27, 2025
1 parent dfa09cf commit 9eea585
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions teddycloud/rootfs/etc/s6-overlay/s6-rc.d/teddycloud/run
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,21 @@ fi

if [ -d /config/data/ ]; then
bashio::log.info "Old /config/data path exists; migrating it over to new certs path"
mv /config/data/content/* /data/teddycloud/content/*
mv /config/data/library/* /data/teddycloud/library/*
mv /config/data/firmware/* /data/teddycloud/firmware/*
mv /config/data/cache/* /data/teddycloud/cache/*
mv /config/data/www/custom_img/* /data/teddycloud/custom_img/*
if [ -d /config/data/content ]; then
mv /config/data/content/* /data/teddycloud/content/
fi
if [ -d /config/data/library ]; then
mv /config/data/library/* /data/teddycloud/library/
fi
if [ -d /config/data/firmware ]; then
mv /config/data/firmware/* /data/teddycloud/firmware/
fi
if [ -d /config/data/cache ]; then
mv /config/data/cache/* /data/teddycloud/cache/
fi
if [ -d /config/data/www/custom_img ]; then
mv /config/data/www/custom_img/* /data/teddycloud/custom_img/
fi
rm -rf /config/data
fi

Expand Down

0 comments on commit 9eea585

Please sign in to comment.