From 3bc62471743504f864ffcccd2c973521a106ac49 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 15 Jun 2022 16:44:20 +0200 Subject: [PATCH] Update 20-folders.sh --- teamspeak/rootfs/etc/cont-init.d/20-folders.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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