mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-12 10:29:52 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
LOCATION=$(bashio::config 'data_location')
|
LOCATION=$(bashio::config 'data_location')
|
||||||
|
|
||||||
# Data remanence
|
# Data remanence for /teamspeak/save
|
||||||
if -d /teamspeak/save; then
|
if -d /teamspeak/save; then
|
||||||
cp -n /teamspeak/save "$LOCATION"
|
cp -n /teamspeak/save "$LOCATION"
|
||||||
rm -r /teamspeak/save
|
rm -r /teamspeak/save
|
||||||
@@ -11,3 +11,14 @@ fi
|
|||||||
|
|
||||||
mkdir -p "$LOCATION"
|
mkdir -p "$LOCATION"
|
||||||
ln -sf "$LOCATION" /teamspeak/save
|
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
|
||||||
|
chown -R 503:503 "$LOCATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user