mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 20-folders.sh
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /share/webtop-alpine
|
||||
chown -R abc:abc /share/webtop-alpine
|
||||
if [ ! -f /config/configuration.yaml ]; then
|
||||
rm -r /config
|
||||
ln -s /share/webtop-alpine /config
|
||||
echo "Data folder set to /share/webtop-alpine"
|
||||
for FOLDERS in "Desktop" "thinclients_drives" ".config"; do
|
||||
mkdir -p /share/webtop-alpine/$FOLDERS
|
||||
if [ -d /config/$FOLDERS ]; then
|
||||
cp /config/$FOLDERS/* /share/webtop-alpine/$FOLDERS
|
||||
rm -r /config/$FOLDERS
|
||||
fi
|
||||
ln -s /share/webtop-alpine/$FOLDERS /config
|
||||
done
|
||||
|
||||
echo "Data folder set to /share/webtop-alpine"
|
||||
chown -R abc:abc /share/webtop-alpine
|
||||
|
||||
Reference in New Issue
Block a user