From 1d6c14a96984511a9e4bf607f04a92298fca9512 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 2 Apr 2014 04:10:21 +0200 Subject: using collectd and stuff --- filehooker/root-image/krebs/bin/start-ncdc.ship | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'filehooker/root-image/krebs/bin/start-ncdc.ship') diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship index 3251ef53..1d47bcfb 100755 --- a/filehooker/root-image/krebs/bin/start-ncdc.ship +++ b/filehooker/root-image/krebs/bin/start-ncdc.ship @@ -4,16 +4,19 @@ set -euf . /krebs/lib/filehooker #@include network ncdc_user="hooker" + useradd -m $ncdc_user ||: sudo -u $ncdc_user /usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc 2>/dev/null || echo "ncdc is already running" - -dc_hub="adcs://elch.nsupdate.info:2781" +nick=$(cat /etc/hostname) +echo "using nick $nick" +ncdc_configure_nick "$nick" +sleep 1 +dc_hub="adcs://elchhub.nsupdate.info:2781" +echo "connecting to $dc_hub" ncdc_configure_hub "$dc_hub" "elch" -nick=$(get_hostname) -ncdc_configure_nick "$nick" share_all_partitions -- cgit v1.2.3