Update 20-folders.sh

This commit is contained in:
Alexandre
2022-06-15 15:02:03 +02:00
committed by GitHub
parent db13f2c851
commit 33ef851f74

View File

@@ -8,17 +8,17 @@ if -d /teamspeak/save; then
cp -n /teamspeak/save "$LOCATION"
rm -r /teamspeak/save
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
# Persmissions
chown -R 503:503 "$LOCATION"
chmod 777 "$LOCATION"