summaryrefslogtreecommitdiffstats
path: root/cholerab/enterprise
diff options
context:
space:
mode:
Diffstat (limited to 'cholerab/enterprise')
-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