Update 20-folders.sh

This commit is contained in:
Alexandre
2022-06-15 15:07:13 +02:00
committed by GitHub
parent 33ef851f74
commit cb8d84bbd9

View File

@@ -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