mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update 00-folders.sh
This commit is contained in:
@@ -5,11 +5,11 @@ CONFIGLOCATION=$(bashio::config "CONFIG_LOCATION")
|
|||||||
|
|
||||||
|
|
||||||
if [ ! -d "$CONFIGLOCATION" ]; then
|
if [ ! -d "$CONFIGLOCATION" ]; then
|
||||||
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i "s| /data/config| $CONFIGLOCATION|g" /etc/cont-init.d/*
|
sed -i "s|/data/config|$CONFIGLOCATION|g" /etc/cont-init.d/*
|
||||||
sed -i "s| /data/config| $CONFIGLOCATION|g" /defaults/* || true
|
sed -i "s|/data/config|$CONFIGLOCATION|g" /defaults/*
|
||||||
|
|
||||||
# Create directory
|
# Create directory
|
||||||
mkdir -p "$CONFIGLOCATION"/config
|
mkdir -p "$CONFIGLOCATION"/config
|
||||||
|
|||||||
Reference in New Issue
Block a user