mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 17:46:00 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
LOCATION=$(bashio::config 'data_location')
|
|
||||||
|
|
||||||
# Data remanence for /teamspeak/save
|
# Data remanence for /teamspeak/save
|
||||||
if [ -d /teamspeak/save ]; then
|
if [ -d /teamspeak/save ]; then
|
||||||
cp -rn /teamspeak/save/* "$LOCATION"/ || true
|
cp -rn /teamspeak/save/* /data
|
||||||
rm -r /teamspeak/save
|
rm -r /teamspeak/save
|
||||||
fi
|
fi
|
||||||
|
mkdir /teamspeak
|
||||||
ln -sf /data /teamspeak/save
|
ln -sf /data /teamspeak/save
|
||||||
|
chown -R 533:533 /data
|
||||||
chmod -R 777 /data
|
chmod -R 777 /data
|
||||||
|
chown -R 533:533 /teamspeak
|
||||||
|
chmod -R 777 /teamspeak
|
||||||
|
|||||||
Reference in New Issue
Block a user