syncthing fails to start
in supervisord.conf
we make reference to NB_USER
, but syncthing is started before start.sh
is run, meaning that the user has not yet been renamed.
Using the original jovyan
will clearly cause problems after start.sh
is run, later in the startup.
We cannot just source the start.sh
script in our own startup.sh
either, as if start.sh
is run twice (it is run in start-singleuser.sh
) it will fail the second time because jovyan
no longer exists.
We would like to avoid, however, copying the contents of start-singleuser.sh
into our startup.sh
, as otherwise we won't get any updates to start-singleuser.sh
when the base image is updated.
The only way I can see around this is to source start.sh
in our own startup.sh
, and then clobber start.sh
so that it just contains exec $*
.