mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-28 16:51:44 +00:00
Create 20-folders.sh
This commit is contained in:
1 parent
4c73758ca2
commit
288b2da67d
1 file changed
+13
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user