internal_url

This commit is contained in:
Devmel Apps
2023-07-28 13:47:59 +02:00
parent 96191aa99a
commit 1cc2efecc8
2 changed files with 14 additions and 7 deletions
+9 -2
View File
@@ -3,14 +3,21 @@
arch="$(apk --print-arch)"
case "$arch" in \
aarch64) arch='arm64' ;; \
armhf) arch='armhf' ;; \
armv7) arch='arm' ;; \
amd64) arch='x86_64' ;; \
i386) arch='x86' ;; \
esac;
echo "AirSendWebService arch ${arch}"
echo "AirSendWebService arch: ${arch}"
hname="$(hostname -i)"
echo "internal_url: http://${hname}:33863"
if [ -n "${SUPERVISOR_TOKEN:-}" ]; then
echo ${SUPERVISOR_TOKEN} > hass_api.token
fi
cd /home
echo ${SUPERVISOR_TOKEN} > hass_api.token
ulimit -n 4096
./bin/unix/${arch}/AirSendWebService 99399
php -S 127.0.0.1:80 callback.php
sleep infinity