diff options
author | root <root@darth_serious> | 2014-05-12 16:31:10 +0200 |
---|---|---|
committer | root <root@darth_serious> | 2014-05-12 16:31:10 +0200 |
commit | 814f3d48f67901a79b278bc49a9847cbf9e47ff1 (patch) | |
tree | b22e85b4fdce7daaec396634d16bfaf75d50f5ba /elchos/root-image/krebs/bin | |
parent | 9c34e20898def5954da2f50fdc6036209521b5f8 (diff) |
elchos is now a Reaktor submodule
Diffstat (limited to 'elchos/root-image/krebs/bin')
-rwxr-xr-x | elchos/root-image/krebs/bin/refresh-shares.ship | 2 | ||||
-rwxr-xr-x | elchos/root-image/krebs/bin/start-ncdc.ship | 7 |
2 files changed, 6 insertions, 3 deletions
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" |