diff options
author | makefu <github@syntax-fehler.de> | 2014-03-17 09:27:05 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-03-17 09:27:05 +0100 |
commit | 004afecb81c443a4ab459cfd7f4468ad692f6dd7 (patch) | |
tree | 95c3aa03df3e4a7f26073fd67d8d816a8f395529 /filehooker/root-image/krebs/bin/start-ncdc.ship | |
parent | 50006d90a290a3d3e9c57ed1317062f0500e1890 (diff) |
add ncdc startup script
Diffstat (limited to 'filehooker/root-image/krebs/bin/start-ncdc.ship')
-rw-r--r-- | filehooker/root-image/krebs/bin/start-ncdc.ship | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship new file mode 100644 index 00000000..393c05cc --- /dev/null +++ b/filehooker/root-image/krebs/bin/start-ncdc.ship @@ -0,0 +1,17 @@ +#!/usr/bin/env ship +set -euf +#@include filehooker +. /krebs/lib/filehooker +#@include network +ncdc_user="hooker" +useradd -m $ncdc_user ||: + +dc_hub="adcs://elch.nsupdate.info:2781" +ncdc_configure_hub "$dc_hub" + +nick=$(get_hostname) +ncdc_configure_nick "$nick" + +share_all_partitions + +sudo -u $ncdc_user /usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc |