Update 20-folders.sh

This commit is contained in:
Alexandre
2022-06-15 15:10:46 +02:00
committed by GitHub
parent cb8d84bbd9
commit efb546989e

View File

@@ -5,7 +5,7 @@ LOCATION=$(bashio::config 'data_location')
# Data remanence for /teamspeak/save
if [ -d /teamspeak/save ]; then
cp -n /teamspeak/save "$LOCATION"
cp -n /teamspeak/save/* "$LOCATION"/
rm -r /teamspeak/save
fi
mkdir -p "$LOCATION"
@@ -13,7 +13,7 @@ ln -sf "$LOCATION" /teamspeak/save
# Data remanence for /data
if [ -d /data ]; then
cp -n /data "$LOCATION"
cp -n /data/* "$LOCATION"/
rm -r /data
fi
mkdir -p "$LOCATION"