diff --git a/scripts/startup.sh b/scripts/startup.sh new file mode 100644 index 0000000..3d9b429 --- /dev/null +++ b/scripts/startup.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ -f .install_host ]; +then + sed -i "s/$(cat .install_host)/$(hostname)/g" iobroker-data/objects.json + rm .install_host +fi + +node node_modules/iobroker.js-controller/controller.js