summaryrefslogtreecommitdiffstats
path: root/modules/noise/noise-as-user
diff options
context:
space:
mode:
authorroot <root@krebs>2011-05-05 09:45:18 +0200
committerroot <root@krebs>2011-05-05 09:47:58 +0200
commit13d7ab68a3dfe881fffdcca16aa9f6ea56b2d583 (patch)
tree63ee04614f903e8f45bf2e3632020b13d16d6dc5 /modules/noise/noise-as-user
parent548e5e53d3bcfec31c1fb89d61da3405aec50924 (diff)
parent4b65c37645b6b72a0531fbbdb75310bf93ee99de (diff)
Merge branch 'import-noise'
Diffstat (limited to 'modules/noise/noise-as-user')
-rwxr-xr-xmodules/noise/noise-as-user4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/noise/noise-as-user b/modules/noise/noise-as-user
new file mode 100755
index 00000000..15af5f03
--- /dev/null
+++ b/modules/noise/noise-as-user
@@ -0,0 +1,4 @@
+#! /bin/sh
+qname="`readlink -f "$0"`"
+dirname="`dirname "$qname"`"
+exec sudo -u noise env -i TCPREMOTEIP="$TCPREMOTEIP" "$dirname/noise"