Update 20-folders.sh

This commit is contained in:
Alexandre
2022-01-07 08:19:24 +01:00
committed by GitHub
parent 5f25dcbcee
commit 7c1940e54b

View File

@@ -1,9 +1,13 @@
#!/bin/bash #!/bin/bash
mkdir -p /share/webtop-alpine for FOLDERS in "Desktop" "thinclients_drives" ".config"; do
chown -R abc:abc /share/webtop-alpine mkdir -p /share/webtop-alpine/$FOLDERS
if [ ! -f /config/configuration.yaml ]; then if [ -d /config/$FOLDERS ]; then
rm -r /config cp /config/$FOLDERS/* /share/webtop-alpine/$FOLDERS
ln -s /share/webtop-alpine /config rm -r /config/$FOLDERS
echo "Data folder set to /share/webtop-alpine"
fi fi
ln -s /share/webtop-alpine/$FOLDERS /config
done
echo "Data folder set to /share/webtop-alpine"
chown -R abc:abc /share/webtop-alpine