mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 20-folders.sh
This commit is contained in:
@@ -10,9 +10,9 @@ mkdir -p "$CONFIGSOURCE/import_files" || true
|
||||
mkdir -p "$CONFIGSOURCE/configurations" || true
|
||||
|
||||
# Create symlinks
|
||||
cp -n /data/configurations $CONFIGSOURCE/configurations
|
||||
cp -rnf /data/configurations $CONFIGSOURCE
|
||||
rm -r /data/configurations
|
||||
ln -s $CONFIGSOURCE/configurations /data/configurations
|
||||
ln -s $CONFIGSOURCE/configurations /data
|
||||
|
||||
# Make sure permissions are right
|
||||
chown -R "$(id -u):$(id -g)" "$CONFIGSOURCE"
|
||||
|
||||
Reference in New Issue
Block a user