some testing

This commit is contained in:
andre
2020-06-21 22:21:11 +02:00
parent 52a2476034
commit c80b5f9c8b
2 changed files with 9 additions and 2 deletions

View File

@@ -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"]

View File

@@ -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