diff --git a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh index 55bc6b90b..4d8c28655 100644 --- a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh +++ b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh @@ -1,12 +1,14 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash -LOCATION=$(bashio::config 'data_location') - # Data remanence for /teamspeak/save if [ -d /teamspeak/save ]; then - cp -rn /teamspeak/save/* "$LOCATION"/ || true + cp -rn /teamspeak/save/* /data rm -r /teamspeak/save fi +mkdir /teamspeak ln -sf /data /teamspeak/save +chown -R 533:533 /data chmod -R 777 /data +chown -R 533:533 /teamspeak +chmod -R 777 /teamspeak