Pass --upgrade-db to jupyterhub all the time

- It's a no-op if we aren't upgrading hub versions.
- We know we're only using sqlite, since we are an
  opinionated distro!
- This matches what we do in z2jh
This commit is contained in:
yuvipanda
2019-05-20 11:31:33 -07:00
parent 2a8c056a3b
commit fb75777d8a

View File

@@ -19,8 +19,7 @@ ProtectKernelModules=yes
Environment=TLJH_INSTALL_PREFIX={install_prefix}
# Run upgrade-db before starting, in case Hub version has changed
# This is a no-op when no db exists or no upgrades are needed
ExecStartPre={python_interpreter_path} -m jupyterhub.app -f {jupyterhub_config_path} upgrade-db
ExecStart={python_interpreter_path} -m jupyterhub.app -f {jupyterhub_config_path}
ExecStart={python_interpreter_path} -m jupyterhub.app -f {jupyterhub_config_path} --upgrade-db
[Install]
# Start service when system boots