mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 20-folders.sh
This commit is contained in:
@@ -5,7 +5,7 @@ LOCATION=$(bashio::config 'data_location')
|
||||
|
||||
# Data remanence for /teamspeak/save
|
||||
if [ -d /teamspeak/save ]; then
|
||||
cp -n /teamspeak/save/* "$LOCATION"/
|
||||
cp -rn /teamspeak/save/* "$LOCATION"/
|
||||
rm -r /teamspeak/save
|
||||
fi
|
||||
mkdir -p "$LOCATION"
|
||||
@@ -13,10 +13,11 @@ ln -sf "$LOCATION" /teamspeak/save
|
||||
|
||||
# Data remanence for /data
|
||||
if [ -d /data ]; then
|
||||
cp -n /data/* "$LOCATION"/
|
||||
cp -rn /data/* "$LOCATION"/
|
||||
rm -r /data
|
||||
fi
|
||||
mkdir -p "$LOCATION"
|
||||
rm -r /data
|
||||
ln -sf "$LOCATION" /data
|
||||
|
||||
# Persmissions
|
||||
|
||||
Reference in New Issue
Block a user