Commit c31df4b5 authored by Joseph Weston's avatar Joseph Weston
Browse files

fix user name and home directory before running the syncthing startup

The price to pay is to run `` as NB_USER, which
takes advantage of the fact that `` does not try to rename
users and home directories if not run as root.

Closes #2
parent e06a5d22
/usr/local/bin/ # rename user etc.
## launch daemonized SSHD
......@@ -12,4 +14,4 @@ if [[ ! -z "$NB_HOSTNAME" ]]; then
## start the notebook server
exec /usr/local/bin/ $*
exec su $NB_USER -c "/usr/local/bin/ $*"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment