external machine
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
cd /home
|
||||
arch="$(apk --print-arch)"
|
||||
case "$arch" in \
|
||||
aarch64) arch='arm64' ;; \
|
||||
@@ -10,13 +11,15 @@ case "$arch" in \
|
||||
esac;
|
||||
echo "AirSendWebService arch: ${arch}"
|
||||
hname="$(hostname -i)"
|
||||
echo "internal_url: http://${hname}:33863"
|
||||
echo "internal_url: http://${hname}:33863/"
|
||||
|
||||
if [ -n "${SUPERVISOR_TOKEN:-}" ]; then
|
||||
if [ -n "${SUPERVISOR_TOKEN:-}" ]
|
||||
then
|
||||
echo ${SUPERVISOR_TOKEN} > hass_api.token
|
||||
else
|
||||
echo "Not running on Home Assistant machine..."
|
||||
fi
|
||||
|
||||
cd /home
|
||||
ulimit -n 4096
|
||||
./bin/unix/${arch}/AirSendWebService 99399
|
||||
php -S 127.0.0.1:80 callback.php
|
||||
|
||||
Reference in New Issue
Block a user