mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-26 10:14:03 +02:00
some testing
This commit is contained in:
@@ -94,4 +94,4 @@ ENV DEBIAN_FRONTEND="teletype" \
|
||||
# Run startup-script
|
||||
# ENTRYPOINT ["/bin/bash", "-c", "/opt/scripts/iobroker_startup.sh"]
|
||||
ENTRYPOINT ["/opt/scripts/iobroker_startup.sh"]
|
||||
CMD ["gosu iobroker node node_modules/iobroker.js-controller/controller.js"]
|
||||
CMD ["iob"]
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$1" = 'iob' ];
|
||||
then
|
||||
# Reading ENV
|
||||
adminport=$IOB_ADMINPORT
|
||||
avahi=$AVAHI
|
||||
@@ -451,7 +454,11 @@ echo ' '
|
||||
echo "Starting ioBroker..."
|
||||
echo ' '
|
||||
|
||||
# gosu iobroker node node_modules/iobroker.js-controller/controller.js
|
||||
exec gosu iobroker node node_modules/iobroker.js-controller/controller.js "$@"
|
||||
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
||||
# Preventing container restart by keeping a process alive even if iobroker will be stopped
|
||||
# tail -f /dev/null
|
||||
|
||||
Reference in New Issue
Block a user