From feb6d798e62e8e434fa98b54bed2771aaad32a26 Mon Sep 17 00:00:00 2001 From: Simonmicro Date: Thu, 6 Jan 2022 17:14:40 +0100 Subject: [PATCH] Fixes #54 --- docker/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.py b/docker/entrypoint.py index 1483579..30f51bb 100755 --- a/docker/entrypoint.py +++ b/docker/entrypoint.py @@ -49,7 +49,7 @@ def change_uid_grp(): loggersrv.debug(subprocess.check_output(['ls', '-la', dbPath]).decode()) if 'LOGFILE' in os.environ and os.path.exists(os.environ['LOGFILE']): # Oh, the user also wants a custom log file -> make sure start.py can access it by setting the correct permissions (777) - os.chmod(os.environ['LOGFILE'], 777) + os.chmod(os.environ['LOGFILE'], 0o777) loggersrv.error(str(subprocess.check_output(['ls', '-la', os.environ['LOGFILE']]))) loggersrv.info("Setting gid to '%s'." % str(new_gid)) os.setgid(new_gid)