summaryrefslogtreecommitdiffstats
path: root/cholerab/enterprise/README
diff options
context:
space:
mode:
authorFelix Richter <github@syntax-fehler.de>2011-05-26 01:55:57 -0700
committerFelix Richter <github@syntax-fehler.de>2011-05-26 01:55:57 -0700
commit56c1a9da28939d88ddc9e59d60b669736fcff1d3 (patch)
tree2fda4ae52046ecc195ad0ecd23cf0eee923bde6e /cholerab/enterprise/README
parent5519f9d6e10fcd153171e1511d8b49961c32c158 (diff)
Added Enterprise Rooting
Diffstat (limited to 'cholerab/enterprise/README')
-rw-r--r--cholerab/enterprise/README11
1 files changed, 10 insertions, 1 deletions
diff --git a/cholerab/enterprise/README b/cholerab/enterprise/README
index 28b4551a..a4f9d902 100644
--- a/cholerab/enterprise/README
+++ b/cholerab/enterprise/README
@@ -19,7 +19,16 @@ Rebooting
Enterprise Einschalter
--------------------
-
+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"
+ exec sudo "$0" "$@"
+fi
+</script>
Enterprise Shutdown
------------------
Mittel der Wahl um einen Shutdown zu forcen