summaryrefslogtreecommitdiffstats
path: root/elchos/root-image/krebs/bin
diff options
context:
space:
mode:
Diffstat (limited to 'elchos/root-image/krebs/bin')
-rwxr-xr-xelchos/root-image/krebs/bin/refresh-shares.ship2
-rwxr-xr-xelchos/root-image/krebs/bin/start-ncdc.ship7
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"