From 814f3d48f67901a79b278bc49a9847cbf9e47ff1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 12 May 2014 16:31:10 +0200 Subject: elchos is now a Reaktor submodule --- elchos/root-image/krebs/bin/refresh-shares.ship | 2 +- elchos/root-image/krebs/bin/start-ncdc.ship | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'elchos/root-image/krebs/bin') diff --git a/elchos/root-image/krebs/bin/refresh-shares.ship b/elchos/root-image/krebs/bin/refresh-shares.ship index 364d7758..46d15f46 100755 --- a/elchos/root-image/krebs/bin/refresh-shares.ship +++ b/elchos/root-image/krebs/bin/refresh-shares.ship @@ -4,7 +4,7 @@ set -euf #@include filehooker . /krebs/lib/filehooker -ncdc_user="hooker" +ncdc_user="elch" share_all_partitions systemctl restart hddtemp.service 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" -- cgit v1.2.3