Commit 5a435e6e authored by Denis Philippov's avatar Denis Philippov

change OS to get pass because of Docker's issue

parent 808d03f8
......@@ -24,9 +24,11 @@ def version_update(path,file,evr):
def revision_update(path,file):
import subprocess, os# , pwd for some reasons pwd.getpwall() show some 3-user default, so read and parse etc/passwd
import getpass
pef = None # , preexec_fn=pefuid
if (os.getuid() == 0):
uname = os.getlogin()
#uname = os.getlogin()
uname = getpass.getuser()
with open("/etc/passwd") as f:
for line in f:
line = line.strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment