diff --git a/docker/entrypoint.py b/docker/entrypoint.py index e534cc0..cd4999a 100755 --- a/docker/entrypoint.py +++ b/docker/entrypoint.py @@ -37,13 +37,11 @@ def change_uid_grp(): 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) + loggersrv.info("Setting gid to '%s'." % str(new_gid)) + os.setgid(new_gid) - if uid != new_uid: - loggersrv.info("Setting uid to '%s'." % str(new_uid)) - os.setuid(uid) + loggersrv.info("Setting uid to '%s'." % str(new_uid)) + os.setuid(new_uid) def change_tz():