Code Review
/
fuel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Get user id without forking a shell.
[fuel.git]
/
deploy
/
common.py
diff --git
a/deploy/common.py
b/deploy/common.py
index
cc418b5
..
787a21a
100644
(file)
--- a/
deploy/common.py
+++ b/
deploy/common.py
@@
-133,8
+133,8
@@
def commafy(comma_separated_list):
def check_if_root():
-
r = exec_cmd('whoami'
)
- if
r != 'root'
:
+
uid = os.getuid(
)
+ if
uid != 0
:
err('You need be root to run this application')