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 # Data remanence for /teamspeak/save
if [ -d /teamspeak/save ]; then if [ -d /teamspeak/save ]; then
cp -n /teamspeak/save "$LOCATION" cp -n /teamspeak/save/* "$LOCATION"/
rm -r /teamspeak/save rm -r /teamspeak/save
fi fi
mkdir -p "$LOCATION" mkdir -p "$LOCATION"
@@ -13,7 +13,7 @@ ln -sf "$LOCATION" /teamspeak/save
# Data remanence for /data # Data remanence for /data
if [ -d /data ]; then if [ -d /data ]; then
cp -n /data "$LOCATION" cp -n /data/* "$LOCATION"/
rm -r /data rm -r /data
fi fi
mkdir -p "$LOCATION" mkdir -p "$LOCATION"