Files
hassio-addons/teamspeak/rootfs/etc/cont-init.d/20-folders.sh
Alexandre 70efc35918 Set all default UID/GID to root
To make sure it works by default with NAS, and people can still change it afterwards it they want additional security
2022-08-22 09:42:16 +02:00

14 lines
276 B
Bash

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Data remanence for /teamspeak/save
if [ -d /teamspeak ]; then
cp -rn /teamspeak/* /data
rm -r /teamspeak
ln -sf /data /teamspeak
chmod -R 777 /teamspeak
fi
#chown -R PUID:PGID /data
chmod -R 777 /data