From 3148734d804cc45267effc507e17696f2001ca93 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 31 Jan 2017 10:30:19 +0100 Subject: [PATCH] Create startup.sh --- scripts/startup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/startup.sh 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