Test ohne S6-Overlay
This commit is contained in:
@@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
CONFIG_PATH=/config
|
|
||||||
mkdir -p "$CONFIG_PATH"
|
|
||||||
if [ ! -f "$CONFIG_PATH/config.xml" ]; then
|
|
||||||
cat > "$CONFIG_PATH/config.xml" << EOC
|
|
||||||
<config>
|
|
||||||
<user value="${USER:-Anonymous}"/>
|
|
||||||
<team value="${TEAM:-247478}"/>
|
|
||||||
<passkey value="${PASSKEY:-}"/>
|
|
||||||
<power value="${POWER:-medium}"/>
|
|
||||||
<web-enable value="true"/>
|
|
||||||
<http-addresses value="0.0.0.0:7396"/>
|
|
||||||
<account-token value="${ACCOUNT_TOKEN:-}"/>
|
|
||||||
<machine-id value="${MACHINE_NAME:-HomeAssistant}"/>
|
|
||||||
</config>
|
|
||||||
EOC
|
|
||||||
echo "Config created at $CONFIG_PATH/config.xml"
|
|
||||||
fi
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
# Importiere Home Assistant-Konfigurationsoptionen
|
|
||||||
. /opt/hassio-addons/base.sh
|
|
||||||
|
|
||||||
# Konfigurationsverzeichnis
|
|
||||||
CONFIG_PATH=/data/fahclient
|
|
||||||
mkdir -p "$CONFIG_PATH"
|
|
||||||
|
|
||||||
# Erstelle config.xml, falls nicht vorhanden
|
|
||||||
if [ ! -f "$CONFIG_PATH/config.xml" ]; then
|
|
||||||
cat > "$CONFIG_PATH/config.xml" << EOF
|
|
||||||
<config>
|
|
||||||
<user value="$(hass.config.get 'user')"/>
|
|
||||||
<team value="$(hass.config.get 'team')"/>
|
|
||||||
<passkey value="$(hass.config.get 'passkey')"/>
|
|
||||||
<power value="$(hass.config.get 'power')"/>
|
|
||||||
<web-enable value="true"/>
|
|
||||||
<http-addresses value="0.0.0.0:7396"/>
|
|
||||||
</config>
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
|
||||||
This is a placeholder for cont-init, which runs scripts in /etc/cont-init.d/
|
|
||||||
No further action needed as cont-init.d scripts are executed automatically
|
|
||||||
exit 0
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
oneshot
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
up
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/execlineb -P
|
|
||||||
with-contenv
|
|
||||||
foreground { /usr/bin/fahclient --config /data/fahclient/config.xml }
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
longrun
|
|
||||||
Reference in New Issue
Block a user