mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-15 15:44:59 -04:00
code style
This commit is contained in:
parent
ba25df0b1c
commit
7f4fe7d003
1 changed files with 3 additions and 2 deletions
|
@ -33,8 +33,9 @@ def change_uid_grp():
|
|||
os.chown("/home/py-kms", new_uid, new_gid)
|
||||
os.chown("/usr/bin/start.py", new_uid, new_gid)
|
||||
if os.path.isfile(dbPath):
|
||||
os.chown(dbPath, new_uid, new_gid)
|
||||
loggersrv.debug("%s" %str(subprocess.check_output("ls -al " + dbPath, shell=True)))
|
||||
os.chown(dbPath, new_uid, new_gid)
|
||||
loggersrv.debug("%s" %str(subprocess.check_output("ls -al " + dbPath, shell=True)))
|
||||
|
||||
if gid != new_gid:
|
||||
loggersrv.info("Setting gid to '%s'." % str(new_gid))
|
||||
os.setgid(gid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue