diff --git a/grampsweb/rootfs/etc/cont-init.d/99-run.sh b/grampsweb/rootfs/etc/cont-init.d/99-run.sh index 71b2dfeb4..e682cf1bc 100755 --- a/grampsweb/rootfs/etc/cont-init.d/99-run.sh +++ b/grampsweb/rootfs/etc/cont-init.d/99-run.sh @@ -5,22 +5,9 @@ set -e ################# # Set structure # ################# - - -for folders in users indexdir database secret media cache thumbnail_cache grampsdb; do - mkdir -p /config/"$folders" - if [ -d /app/"$folders" ] && [ "$(ls -A /app/"$folders")" ]; then - cp -rf /app/"$folders"/* /config/"$folders" - fi - rm -rf /app/"$folders" - ln -sf /config/"$folders" /app/"$folders" -done - -if [ -d /root/.gramps/grampsdb ] && [ "$(ls -A /root/.gramps/grampsdb)" ]; then - cp -rf /root/.gramps/grampsdb/* /config/grampsdb - rm -rf /root/.gramps/grampsdb - ln -sf /config/grampsdb /root/.gramps/grampsdb -fi +cp -rf /app /config +rm -r /app +ln -s /config /app ##################### # Create secret key #