diff --git a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh index f47003cab..c858fee74 100644 --- a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh +++ b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh @@ -5,7 +5,7 @@ LOCATION=$(bashio::config 'data_location') # Data remanence for /teamspeak/save if [ -d /teamspeak/save ]; then - cp -n /teamspeak/save "$LOCATION" + cp -n /teamspeak/save/* "$LOCATION"/ rm -r /teamspeak/save fi mkdir -p "$LOCATION" @@ -13,7 +13,7 @@ ln -sf "$LOCATION" /teamspeak/save # Data remanence for /data if [ -d /data ]; then - cp -n /data "$LOCATION" + cp -n /data/* "$LOCATION"/ rm -r /data fi mkdir -p "$LOCATION"