Remove cont-init dependency to fix s6-rc-compile error
This commit is contained in:
16
rootfs/etc/cont-init.d/foldingathome.sh
Executable file
16
rootfs/etc/cont-init.d/foldingathome.sh
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
. /opt/hassio-addons/base.sh
|
||||||
|
CONFIG_PATH=/data/fahclient
|
||||||
|
mkdir -p "$CONFIG_PATH"
|
||||||
|
if [ ! -f "$CONFIG_PATH/config.xml" ]; then
|
||||||
|
cat > "$CONFIG_PATH/config.xml" << EOC
|
||||||
|
<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>
|
||||||
|
EOC
|
||||||
|
fi
|
||||||
1
rootfs/etc/s6-overlay/s6-rc.d/cont-init/type
Normal file
1
rootfs/etc/s6-overlay/s6-rc.d/cont-init/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
@@ -1 +0,0 @@
|
|||||||
cont-init
|
|
||||||
0
rootfs/etc/s6-overlay/s6-rc.d/init-foldingathome/run
Normal file → Executable file
0
rootfs/etc/s6-overlay/s6-rc.d/init-foldingathome/run
Normal file → Executable file
Reference in New Issue
Block a user