mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 19:42:58 +00:00
Only apply custom umask if NB_UMASK is set
This commit is contained in:
@@ -38,5 +38,7 @@ if 'GEN_CERT' in os.environ:
|
||||
os.chmod(pem_file, stat.S_IRUSR | stat.S_IWUSR)
|
||||
c.NotebookApp.certfile = pem_file
|
||||
|
||||
# Change default umask if set using flag
|
||||
os.umask(int(os.environ['NB_UMASK'], 8))
|
||||
# Change default umask for all subprocesses of the notebook server if set in
|
||||
# the environment
|
||||
if 'NB_UMASK' in os.environ:
|
||||
os.umask(int(os.environ['NB_UMASK'], 8))
|
Reference in New Issue
Block a user