summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-07-28 14:21:07 +0200
committerTom Gundersen <teg@jklm.no>2011-07-28 14:21:07 +0200
commit92ef85ff23d548f6dc9be3fb9b73a050f596941f (patch)
tree8d06b3607d1bd0442069ad659d18eea4d563b482
parent76b5afd054d73b5c22eb7ee36e081eca40395457 (diff)
NEED_ROOT: default to off2011.07.3
This keeps the functionality, but disables it by default. Individual scripts/functions can turn it on if they want. Signed-off-by: Tom Gundersen <teg@jklm.no>
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index a35e45e..f42c21e 100644
--- a/functions
+++ b/functions
@@ -531,7 +531,7 @@ need_root() {
# Quit script if it's not running by root
# This can be disabled in scripts sourcing functions by setting NEED_ROOT=0
# A local call to need_root can be done to ensure part of script need root privilege
-(( ${NEED_ROOT:-1} == 1 )) && need_root
+(( ${NEED_ROOT:-0} == 1 )) && need_root
# End of file
# vim: set ts=2 sw=2 noet: