#!/bin/sh

# if there are folders from 1.4.77, put them in .sync for safe keeping to be transferred to new container
# this is necessary because the old container won't have unicorn_helper, and that's needed to be able to
# easily talk to the Seagate API - so deadlocked on trying to do it this way

# this has the unfortunate side-effect of now requiring 3x the amount of space being used for what is
# being migrated: old container, new container, and new share
# if [[ -n $(find /shares -maxdepth 1 -mindepth 1 -user root -perm 755 ! -name .sync) ]]
# then
#   mkdir -p /shares/.sync/databag
#   find /shares -maxdepth 1 -mindepth 1 -user root -perm 755 ! -name .sync -exec mv {} /shares/.sync/databag \;
# fi

exit 0
