mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 20-folders.sh
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
# Define home
|
||||
HOME="/share/webtop"
|
||||
mkdir -p $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
|
||||
#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
|
||||
# Create symlinks
|
||||
for FOLDERS in ".config" ".local" "Desktop" "Documents" "Downloads" "Music" "Pictures" "Public" "Templates" "Videos" "thinclient_drives"; do
|
||||
mkdir -p $HOME/$FOLDERS
|
||||
if [ -d /config/$FOLDERS ]; then
|
||||
cp /config/$FOLDERS/* $HOME/$FOLDERS
|
||||
rm -r /config/$FOLDERS
|
||||
fi
|
||||
ln -s $HOME/$FOLDERS /config
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user