summaryrefslogtreecommitdiffstats
path: root/filehooker
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-03-19 21:13:05 +0100
committermakefu <github@syntax-fehler.de>2014-03-19 21:13:05 +0100
commit5f89a51920228acd91891cd54a2bfd49cfe4e399 (patch)
tree65647235c0e2f35429cbc8a1ce626d539f617328 /filehooker
parentca1043e0618259439c64bb55c9de7359778ab208 (diff)
filehooker: use sudo to get onion name
Diffstat (limited to 'filehooker')
-rwxr-xr-x[-rw-r--r--]filehooker/root-image/krebs/bin/start-ncdc.ship3
-rwxr-xr-x[-rw-r--r--]filehooker/root-image/krebs/bin/vim_sane_defaults.ship0
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/onion2
3 files changed, 3 insertions, 2 deletions
diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship
index 393c05cc..e190ec06 100644..100755
--- a/filehooker/root-image/krebs/bin/start-ncdc.ship
+++ b/filehooker/root-image/krebs/bin/start-ncdc.ship
@@ -7,7 +7,7 @@ ncdc_user="hooker"
useradd -m $ncdc_user ||:
dc_hub="adcs://elch.nsupdate.info:2781"
-ncdc_configure_hub "$dc_hub"
+ncdc_configure_hub "$dc_hub" "elch"
nick=$(get_hostname)
ncdc_configure_nick "$nick"
@@ -15,3 +15,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
diff --git a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship b/filehooker/root-image/krebs/bin/vim_sane_defaults.ship
index fcc7ffcf..fcc7ffcf 100644..100755
--- a/filehooker/root-image/krebs/bin/vim_sane_defaults.ship
+++ b/filehooker/root-image/krebs/bin/vim_sane_defaults.ship
diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/onion b/filehooker/root-image/krebs/etc/Reaktor/commands/onion
index 8631fa79..1a202991 100755
--- a/filehooker/root-image/krebs/etc/Reaktor/commands/onion
+++ b/filehooker/root-image/krebs/etc/Reaktor/commands/onion
@@ -1,3 +1,3 @@
#!/bin/sh
-sudo -u tor cat /var/lib/tor/hidden_service/hostname || echo "no hidden service configured"
+sudo -u tor /krebs/bin/tor-get-hidden-service.sh || echo "no hidden service configured"