From 56c1a9da28939d88ddc9e59d60b669736fcff1d3 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Thu, 26 May 2011 01:55:57 -0700 Subject: Added Enterprise Rooting --- cholerab/enterprise/README | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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. + +if [ ! `id -u` -eq "0" ] +then + echo "not root, trying sudo" + exec sudo "$0" "$@" +fi + Enterprise Shutdown ------------------ Mittel der Wahl um einen Shutdown zu forcen -- cgit v1.2.3