summaryrefslogtreecommitdiffstats
path: root/elchos/root-image/krebs/bin/start-ncdc.ship
diff options
context:
space:
mode:
authorroot <root@darth_serious>2014-05-12 16:31:10 +0200
committerroot <root@darth_serious>2014-05-12 16:31:10 +0200
commit814f3d48f67901a79b278bc49a9847cbf9e47ff1 (patch)
treeb22e85b4fdce7daaec396634d16bfaf75d50f5ba /elchos/root-image/krebs/bin/start-ncdc.ship
parent9c34e20898def5954da2f50fdc6036209521b5f8 (diff)
elchos is now a Reaktor submodule
Diffstat (limited to 'elchos/root-image/krebs/bin/start-ncdc.ship')
-rwxr-xr-xelchos/root-image/krebs/bin/start-ncdc.ship7
1 files changed, 5 insertions, 2 deletions
diff --git a/elchos/root-image/krebs/bin/start-ncdc.ship b/elchos/root-image/krebs/bin/start-ncdc.ship
index 1d47bcfb..37d7cf45 100755
--- a/elchos/root-image/krebs/bin/start-ncdc.ship
+++ b/elchos/root-image/krebs/bin/start-ncdc.ship
@@ -3,7 +3,10 @@ set -euf
#@include filehooker
. /krebs/lib/filehooker
#@include network
-ncdc_user="hooker"
+
+# load elch-config
+. /krebs/config.sh
+ncdc_user="elch"
useradd -m $ncdc_user ||:
@@ -13,7 +16,7 @@ nick=$(cat /etc/hostname)
echo "using nick $nick"
ncdc_configure_nick "$nick"
sleep 1
-dc_hub="adcs://elchhub.nsupdate.info:2781"
+dc_hub="$DC_HUB"
echo "connecting to $dc_hub"
ncdc_configure_hub "$dc_hub" "elch"