Update 20-folders.sh

This commit is contained in:
Alexandre
2022-06-15 15:21:04 +02:00
committed by GitHub
parent efb546989e
commit c1f9ab10d6

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