Skip to content

Commit

Permalink
Add ENV to disable admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jul 23, 2020
1 parent 7acd957 commit 8e58146
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Docker/rootfs/etc/services.d/NetDaemonAdmin/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/with-contenv bash
echo "Starting NetDaemon Admin"

cd /admin || exit 1

exec node ./host/admin.js
if [[ $NETDAEMON_ADMIN == "true" ]]
then
echo "Starting NetDaemon Admin"
cd /admin || exit 1
exec node ./host/admin.js
else
exec sleep 2147483647
fi
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ ENV \
HOMEASSISTANT__PORT=8123 \
HOMEASSISTANT__TOKEN=NOT_SET \
HASSCLIENT_MSGLOGLEVEL=Default \
NETDAEMON__SOURCEFOLDER=/data
NETDAEMON__SOURCEFOLDER=/data \
NETDAEMON_ADMIN=true


ENTRYPOINT ["/init"]

0 comments on commit 8e58146

Please sign in to comment.