mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-03 18:37:42 +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
|
HOME=${HOME:-/share/webtop}
|
||||||
mkdir -p /share/webtop-alpine/$FOLDERS
|
mkdir -p $HOME
|
||||||
if [ -d /config/$FOLDERS ]; then
|
chown -R abc:abc $HOME
|
||||||
cp /config/$FOLDERS/* /share/webtop-alpine/$FOLDERS
|
bashio::log.info "Your files are located in $HOME"
|
||||||
rm -r /config/$FOLDERS
|
|
||||||
fi
|
|
||||||
ln -s /share/webtop-alpine/$FOLDERS /config
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Data folder set to /share/webtop-alpine"
|
#for FOLDERS in "Desktop" "thinclient_drives" ".config"; do
|
||||||
chown -R abc:abc /share/webtop-alpine
|
#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