mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 20-folders.sh
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
LOCATION=$(bashio::config 'data_location')
|
||||
|
||||
# Data remanence
|
||||
# Data remanence for /teamspeak/save
|
||||
if -d /teamspeak/save; then
|
||||
cp -n /teamspeak/save "$LOCATION"
|
||||
rm -r /teamspeak/save
|
||||
@@ -11,3 +11,14 @@ fi
|
||||
|
||||
mkdir -p "$LOCATION"
|
||||
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