Update 20-folders.sh

This commit is contained in:
Alexandre
2022-06-15 15:00:27 +02:00
committed by GitHub
parent eb89374cd7
commit db13f2c851

View File

@@ -3,7 +3,7 @@
LOCATION=$(bashio::config 'data_location')
# Data remanence
# Data remanence for /teamspeak/save
if -d /teamspeak/save; then
cp -n /teamspeak/save "$LOCATION"
rm -r /teamspeak/save
@@ -11,3 +11,14 @@ fi
mkdir -p "$LOCATION"
ln -sf "$LOCATION" /teamspeak/save
chown -R 503:503 "$LOCATION"
# Data remanence for /data
if -d /data; then
cp -n /data "$LOCATION"
rm -r /data
fi
mkdir -p "$LOCATION"
ln -sf "$LOCATION" /data
chown -R 503:503 "$LOCATION"