mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-15 21:31:50 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user