Give the user a hint about root. - conn - A script repository to manage connections in Linux.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 2527ea4eb0fb5fc77e758634bd54cb1f23e75e57
(DIR) parent 579cd65912785d0cc507747e4512b964d52a38f0
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 26 Nov 2011 18:33:15 +0100
Give the user a hint about root.
Diffstat:
bin/conn | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/bin/conn b/bin/conn
@@ -1,5 +1,12 @@
#!/bin/sh
+if [ ! $UID -eq 0 ];
+tthen
+ echo "conn is supposed to be run as root."
+ exit 1
+fi
+
cd /etc/conn
./run.sh $*
+