mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
14 lines
266 B
Bash
14 lines
266 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
|
|
LOCATION=$(bashio::config 'data_location')
|
|
|
|
# Data remanence
|
|
if -d /teamspeak/save; then
|
|
cp -n /teamspeak/save "$LOCATION"
|
|
rm -r /teamspeak/save
|
|
fi
|
|
|
|
mkdir -p "$LOCATION"
|
|
ln -sf "$LOCATION" /teamspeak/save
|