diff options
author | makefu <github@syntax-fehler.de> | 2014-03-24 18:17:43 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-03-24 18:17:43 +0100 |
commit | 35d945b9b6222c690a30e70da96daae227d3099b (patch) | |
tree | 2cff5c0e58f2f022b506d60b4cf342c79da74f40 /filehooker/root-image/krebs/bin | |
parent | 8861888838d48eed40b3cc65abd933ebd617ec89 (diff) |
do not pipe shit into ncurses, just use tmux
Diffstat (limited to 'filehooker/root-image/krebs/bin')
-rwxr-xr-x | filehooker/root-image/krebs/bin/start-ncdc.ship | 4 |
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 |