summaryrefslogtreecommitdiffstats
path: root/cholerab/enterprise/README
diff options
context:
space:
mode:
authortv <4z3.pp@src.mine.nu>2011-08-04 02:42:51 +0300
committertv <4z3.pp@src.mine.nu>2011-08-04 02:42:51 +0300
commitac4e28da7b5ed25e75d93ca2066f8b58b1c3ed5f (patch)
treed24bd680c751f2fd42b2c93c82632910a120192a /cholerab/enterprise/README
parentf11d7d6b426fb4b2df004651e2da523ee0d59978 (diff)
add newest and best eroot version ever
Diffstat (limited to 'cholerab/enterprise/README')
-rw-r--r--cholerab/enterprise/README6
1 files changed, 3 insertions, 3 deletions
diff --git a/cholerab/enterprise/README b/cholerab/enterprise/README
index cf54c1e9..24458ffe 100644
--- a/cholerab/enterprise/README
+++ b/cholerab/enterprise/README
@@ -26,10 +26,10 @@ Enterprise Root
---------------
scripts which need root access but are called with lower privileges. The Enterprise Root Pattern provides a Solution for this issue by calling the script itself as sudo.
<code>
-if [ ! `id -u` -eq "0" ]
-then
- echo "not root, trying sudo"
+if test "${nosudo-false}" != true -a `id -u` != 0; then
+ echo "we're going sudo..." >&2
exec sudo "$0" "$@"
+ exit 23 # go to hell
fi
</script> // enterprise ist, wenn <code> ... </script> trotzdem matcht