Squashed commit of the following:

commit 2d92977085
Author: Iyán Méndez Veiga <me@iyanmv.com>
Date:   Tue Aug 21 23:22:35 2018 +0200

    Delete code in start.sh (not necessary). Simplify 'os.umask' code. Add paragraph to docs

commit 19d1e7be71
Author: Iyán Méndez Veiga <me@iyanmv.com>
Date:   Tue Aug 21 19:03:36 2018 +0200

    Change if clause condition

commit 13802f436c
Author: Iyán Méndez Veiga <me@iyanmv.com>
Date:   Tue Aug 21 20:24:38 2018 +0200

    Update jupyterlab & extensions

commit 63bdcad837
Author: Iyán Méndez Veiga <me@iyanmv.com>
Date:   Tue Aug 21 16:21:01 2018 +0200

    Fix 'No newline at end of file'

commit 9504408874
Author: Iyan Méndez Veiga <iyan.mendezveiga@arcelormittal.com>
Date:   Tue Aug 21 15:37:32 2018 +0200

    Fix if clause start.sh

commit 74da4e07b2
Author: Iyan Méndez Veiga <iyan.mendezveiga@arcelormittal.com>
Date:   Tue Aug 21 14:52:21 2018 +0200

    Add NB_UMASK flag to modify default umask
This commit is contained in:
Peter Parente
2018-12-28 13:24:16 -05:00
parent 30ea6099ff
commit 1ec114a8ca
3 changed files with 5 additions and 0 deletions

View File

@@ -37,3 +37,6 @@ if 'GEN_CERT' in os.environ:
# Restrict access to the file
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))