Skip to content

Commit b011204

Browse files
committed
Rename some run-hooks.sh to run-hooks.py
1 parent 73727f3 commit b011204

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/using/common.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ You do so by passing arguments to the `docker run` command.
8686

8787
```{note}
8888
`NB_UMASK` when set only applies to the Jupyter process itself -
89-
you cannot use it to set a `umask` for additional files created during `run-hooks.sh`.
89+
you cannot use it to set a `umask` for additional files created during `run-hooks.py`.
9090
For example, via `pip` or `conda`.
9191
If you need to set a `umask` for these, you **must** set the `umask` value for each command.
9292
```
@@ -135,7 +135,7 @@ or executables (`chmod +x`) to be run to the paths below:
135135
- `/usr/local/bin/before-notebook.d/` - handled **after** all the standard options noted above are applied
136136
and ran right before the Server launches
137137

138-
See the `run-hooks.sh` script [here](https://github.com/jupyter/docker-stacks/blob/main/images/docker-stacks-foundation/run-hooks.sh) and how it's used in the [`start.sh`](https://github.com/jupyter/docker-stacks/blob/main/images/docker-stacks-foundation/start.sh)
138+
See the `run-hooks.py` script [here](https://github.com/jupyter/docker-stacks/blob/main/images/docker-stacks-foundation/run-hooks.py) and how it's used in the [`start.sh`](https://github.com/jupyter/docker-stacks/blob/main/images/docker-stacks-foundation/start.sh)
139139
script for execution details.
140140

141141
## SSL Certificates

docs/using/selecting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ It contains:
3636
with ownership over the `/home/jovyan` and `/opt/conda` paths
3737
- `tini` as the container entry point
3838
- A `start.sh` script as the default command - useful for running alternative commands in the container as applications are added (e.g. `ipython`, `jupyter kernelgateway`, `jupyter lab`)
39-
- A `run-hooks.sh` script, which can source/run files in a given directory
39+
- A `run-hooks.py` script, which can source/run files in a given directory
4040
- Options for a passwordless sudo
4141
- Common system libraries like `bzip2`, `ca-certificates`, `locales`
4242
- `wget` to download external files

images/docker-stacks-foundation/run-hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) Jupyter Development Team.
33
# Distributed under the terms of the Modified BSD License.
44

5-
# The run-hooks.sh script looks for *.sh scripts to source
5+
# The run-hooks.py script looks for *.sh scripts to source
66
# and executable files to run within a passed directory
77
import os
88
from textwrap import dedent
@@ -109,4 +109,4 @@ def source(path: PosixPath):
109109
print(f"Ignoring non-executable: {f}")
110110

111111

112-
print(f"Done running hooks in: {hooks_directory}")
112+
print(f"Done running hooks in: {hooks_directory}")

0 commit comments

Comments
 (0)