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