mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Create 20-folders.sh
This commit is contained in:
13
teamspeak/rootfs/etc/cont-init.d/20-folders.sh
Normal file
13
teamspeak/rootfs/etc/cont-init.d/20-folders.sh
Normal file
@@ -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