mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 20-folders.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user