From 5f89a51920228acd91891cd54a2bfd49cfe4e399 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 19 Mar 2014 21:13:05 +0100 Subject: filehooker: use sudo to get onion name --- filehooker/root-image/krebs/bin/start-ncdc.ship | 3 ++- filehooker/root-image/krebs/bin/vim_sane_defaults.ship | 0 filehooker/root-image/krebs/etc/Reaktor/commands/onion | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 filehooker/root-image/krebs/bin/start-ncdc.ship mode change 100644 => 100755 filehooker/root-image/krebs/bin/vim_sane_defaults.ship (limited to 'filehooker') diff --git a/filehooker/root-image/krebs/bin/start-ncdc.ship b/filehooker/root-image/krebs/bin/start-ncdc.ship old mode 100644 new mode 100755 index 393c05cc..e190ec06 --- 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 old mode 100644 new mode 100755 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" -- cgit v1.2.3