From cb8d84bbd957bdb70297e34fe5f37df10517096e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:07:13 +0200 Subject: [PATCH] Update 20-folders.sh --- teamspeak/rootfs/etc/cont-init.d/20-folders.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh index 3dc44e01d..f47003cab 100644 --- a/teamspeak/rootfs/etc/cont-init.d/20-folders.sh +++ b/teamspeak/rootfs/etc/cont-init.d/20-folders.sh @@ -4,7 +4,7 @@ LOCATION=$(bashio::config 'data_location') # Data remanence for /teamspeak/save -if -d /teamspeak/save; then +if [ -d /teamspeak/save ]; then cp -n /teamspeak/save "$LOCATION" rm -r /teamspeak/save fi @@ -12,7 +12,7 @@ mkdir -p "$LOCATION" ln -sf "$LOCATION" /teamspeak/save # Data remanence for /data -if -d /data; then +if [ -d /data ]; then cp -n /data "$LOCATION" rm -r /data fi