mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 18:01:03 +01:00
16 lines
348 B
Bash
Executable File
16 lines
348 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
# Config location
|
|
CONFIGLOCATION="$(bashio::config 'CONFIG_LOCATION')"
|
|
|
|
# Text
|
|
bashio::log.info "Setting config location to $CONFIGLOCATION"
|
|
|
|
# Adapt files
|
|
sed -i "s|/data/config|$CONFIGLOCATION|g" /etc/cont-init.d/*
|
|
|
|
# Avoid tamper issues
|
|
chown -R root:root "$CONFIGLOCATION"/custom*
|