code style

This commit is contained in:
Zhaofeng Yang 2021-11-01 13:25:27 +08:00
parent ba25df0b1c
commit 7f4fe7d003
No known key found for this signature in database
GPG key ID: 117FA0323121BD88

View file

@ -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)