Update 20-folders.sh

This commit is contained in:
Alexandre
2022-06-15 16:44:20 +02:00
committed by GitHub
parent ee63b95c80
commit 3bc6247174

View File

@@ -1,12 +1,14 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
LOCATION=$(bashio::config 'data_location')
# Data remanence for /teamspeak/save
if [ -d /teamspeak/save ]; then
cp -rn /teamspeak/save/* "$LOCATION"/ || true
cp -rn /teamspeak/save/* /data
rm -r /teamspeak/save
fi
mkdir /teamspeak
ln -sf /data /teamspeak/save
chown -R 533:533 /data
chmod -R 777 /data
chown -R 533:533 /teamspeak
chmod -R 777 /teamspeak