mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02: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
|
mkdir -p "$CONFIGSOURCE/configurations" || true
|
||||||
|
|
||||||
# Create symlinks
|
# Create symlinks
|
||||||
cp -n /data/configurations $CONFIGSOURCE/configurations
|
cp -rnf /data/configurations $CONFIGSOURCE
|
||||||
rm -r /data/configurations
|
rm -r /data/configurations
|
||||||
ln -s $CONFIGSOURCE/configurations /data/configurations
|
ln -s $CONFIGSOURCE/configurations /data
|
||||||
|
|
||||||
# Make sure permissions are right
|
# Make sure permissions are right
|
||||||
chown -R "$(id -u):$(id -g)" "$CONFIGSOURCE"
|
chown -R "$(id -u):$(id -g)" "$CONFIGSOURCE"
|
||||||
|
|||||||
Reference in New Issue
Block a user