Update 20-folders.sh

https://github.com/alexbelgium/hassio-addons/issues/365
This commit is contained in:
Alexandre
2022-06-28 08:22:27 +02:00
committed by GitHub
parent af62013b56
commit 49df7ed231

View File

@@ -2,13 +2,12 @@
# shellcheck shell=bash
# Data remanence for /teamspeak/save
if [ -d /teamspeak/save ]; then
cp -rn /teamspeak/save/* /data
rm -r /teamspeak/save
if [ -d /teamspeak ]; then
cp -rn /teamspeak/* /data
rm -r /teamspeak
ln -sf /data /teamspeak
chmod -R 777 /teamspeak
fi
mkdir -p /teamspeak
ln -sf /data /teamspeak/save
#chown -R PUID:GUID /data
chmod -R 777 /data
#chown -R PUID:GUID /data
chmod -R 777 /teamspeak