mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
16 lines
351 B
Bash
16 lines
351 B
Bash
#!/usr/bin/env bashio
|
|
# shellcheck shell=bash
|
|
|
|
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
|
CONFIGSOURCE=$(dirname "$CONFIGSOURCE")
|
|
|
|
# Create directory
|
|
mkdir -p "$CONFIGSOURCE"
|
|
|
|
# Create symlinks
|
|
rm -r /data/configurations
|
|
ln -sf "$CONFIGSOURCE" /data/configurations
|
|
|
|
# Make sure permissions are right
|
|
chown -R "$(id -u):$(id -g)" "$CONFIGSOURCE"
|