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 `start-singleuser.sh` as NB_USER, which
takes advantage of the fact that `start.sh` does not try to rename
users and home directories if not run as root.

Closes #2
parent e06a5d22
#!/bin/bash
/usr/local/bin/start.sh # rename user etc.
## launch daemonized SSHD
/usr/sbin/sshd
......@@ -12,4 +14,4 @@ if [[ ! -z "$NB_HOSTNAME" ]]; then
fi
## start the notebook server
exec /usr/local/bin/start-singleuser.sh $*
exec su $NB_USER -c "/usr/local/bin/start-singleuser.sh $*"
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