#!/bin/sh nodeId="${nodeId}" && test -z "${nodeId}" && nodeId="1" ports="${ports}" && test -z "${ports}" && ports="80" test -z "${otherDatas}" && otherDatas="{}" mkdir -p /data/urlos/tmp nodeHostname="${nodeHostname}" && test ! -z "${nodeHostname}" && echo "${nodeHostname}" > /data/urlos/tmp/nodeHostname.txt installFrom="${installFrom}" && test ! -z "${installFrom}" && echo "${installFrom}" > /data/urlos/.ifm.conf cat > /data/urlos/tmp/websiteInitData.json <<-EOF { "domains": "${domains}", "ports": "${ports}", "nodeId": "${nodeId}", "dbPassword": "${dbPassword}", "sftpPassword": "${sftpPassword}", "appId": "${appId}", "databaseAppId": "${databaseAppId}", "otherDatas": ${otherDatas} } EOF test ! -z "${domains}" && unset domains || true test ! -z "${ports}" && unset ports || true test ! -z "${nodeId}" && unset nodeId || true test ! -z "${dbPassword}" && unset dbPassword || true test ! -z "${sftpPassword}" && unset sftpPassword || true test ! -z "${appId}" && unset appId || true test ! -z "${databaseAppId}" && unset databaseAppId || true test ! -z "${otherDatas}" && unset otherDatas || true curl -sO https://www.urlos.com/siu && sh siu $1 $2 $3 $4 $5 $6 $7 $8 $9