Update 20-folders.sh

This commit is contained in:
Alexandre
2022-01-08 17:52:39 +01:00
committed by GitHub
parent 4d7294d881
commit 0edeb4df41

View File

@@ -1,16 +1,16 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# Define home
HOME="/share/webtop" HOME="/share/webtop"
mkdir -p $HOME mkdir -p $HOME
chown -R abc:abc $HOME chown -R abc:abc $HOME
cp -rn /config/* $HOME/
bashio::log.info "Your files are located in $HOME"
#for FOLDERS in "Desktop" "thinclient_drives" ".config"; do # Create symlinks
#mkdir -p /share/webtop-alpine/$FOLDERS for FOLDERS in ".config" ".local" "Desktop" "Documents" "Downloads" "Music" "Pictures" "Public" "Templates" "Videos" "thinclient_drives"; do
#if [ -d /config/$FOLDERS ]; then mkdir -p $HOME/$FOLDERS
# cp /config/$FOLDERS/* /share/webtop-alpine/$FOLDERS if [ -d /config/$FOLDERS ]; then
# rm -r /config/$FOLDERS cp /config/$FOLDERS/* $HOME/$FOLDERS
#fi rm -r /config/$FOLDERS
#ln -s /share/webtop-alpine/$FOLDERS /config fi
#done ln -s $HOME/$FOLDERS /config
done