mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
umask everywhere
This commit is contained in:
parent
54c8444285
commit
c40697879c
@ -171,6 +171,7 @@ def paste_server(app, global_conf=None, host="127.0.0.1", port=None,
|
||||
if conf["daemon"] :
|
||||
daemonize(conf["umask"])
|
||||
else:
|
||||
os.umask(int(conf['umask'], 0))
|
||||
os.setpgrp()
|
||||
set_owner_process(conf["user"], conf["group"])
|
||||
configure_logging(conf)
|
||||
|
||||
@ -69,6 +69,7 @@ class Command(BaseCommand):
|
||||
if conf['daemon']:
|
||||
daemonize(conf['umask'])
|
||||
else:
|
||||
os.umask(int(conf['umask'], 0))
|
||||
os.setpgrp()
|
||||
set_owner_process(conf["user"], conf["group"])
|
||||
configure_logging(conf)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user