Restore rootfs and debug build
This commit is contained in:
21
rootfs/etc/s6-overlay/cont-init.d/00-config
Executable file
21
rootfs/etc/s6-overlay/cont-init.d/00-config
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
if [ -n "$CLI_ARGS" ]; then
|
||||
export CLI_ARGS
|
||||
fi
|
||||
Reference in New Issue
Block a user