Create 20-folders.sh

This commit is contained in:
Alexandre
2022-06-15 14:54:07 +02:00
committed by GitHub
parent 4c73758ca2
commit 288b2da67d

View 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