diff --git a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh index d19796636..cbd8922fc 100644 --- a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh +++ b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh @@ -49,7 +49,7 @@ change_folders () { chown -R "$PUID":"$PGID" "$CONFIGLOCATION" # Transfer files - if [ -d "$ORIGINALLOCATION" ] && [ "$(ls -A $ORIGINALLOCATION)" ]; then + if [ -d "$ORIGINALLOCATION" ] && [ "$(ls -A $ORIGINALLOCATION 2>/dev/null)" ]; then echo "Files were existing in $ORIGINALLOCATION, they will be moved to $CONFIGLOCATION" mv "$ORIGINALLOCATION"/* "$CONFIGLOCATION"/ rmdir "$ORIGINALLOCATION"