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