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,13 +1,15 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
for FOLDERS in "Desktop" "thinclient_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
|
||||
HOME=${HOME:-/share/webtop}
|
||||
mkdir -p $HOME
|
||||
chown -R abc:abc $HOME
|
||||
bashio::log.info "Your files are located in $HOME"
|
||||
|
||||
echo "Data folder set to /share/webtop-alpine"
|
||||
chown -R abc:abc /share/webtop-alpine
|
||||
#for FOLDERS in "Desktop" "thinclient_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
|
||||
|
||||
Reference in New Issue
Block a user