summaryrefslogtreecommitdiffstats
path: root/filehooker/root-image/krebs/bin/start-ncdc.ship
diff options
context:
space:
mode:
Diffstat (limited to 'filehooker/root-image/krebs/bin/start-ncdc.ship')
-rwxr-xr-xfilehooker/root-image/krebs/bin/start-ncdc.ship4
1 files changed, 3 insertions, 1 deletions
diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship
index e190ec06..3251ef53 100755
--- a/filehooker/root-image/krebs/bin/start-ncdc.ship
+++ b/filehooker/root-image/krebs/bin/start-ncdc.ship
@@ -6,6 +6,9 @@ set -euf
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"
ncdc_configure_hub "$dc_hub" "elch"
@@ -14,5 +17,4 @@ ncdc_configure_nick "$nick"
share_all_partitions
-sudo -u $ncdc_user /usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc
exit 0