check if user is already root, if so, run spritz directly
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1219 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
+4
-1
@@ -34,5 +34,8 @@ def setup_env():
|
||||
|
||||
|
||||
setup_env()
|
||||
rc = os.system(su_cmd)
|
||||
if os.getuid() == 0:
|
||||
rc = os.system(spritz_path)
|
||||
else:
|
||||
rc = os.system(su_cmd)
|
||||
sys.exit(rc)
|
||||
|
||||
Reference in New Issue
Block a user