summarylogtreecommitdiffstats
path: root/jupyterhub.install
blob: b244d743075e497ba1341e43a8d7886acda22819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade () {
  # Upgrading from pre-1.4.0: output message about new systemd service.
  if [ $(vercmp "$2" 1.4.0-1) -lt 0 ]; then
    echo "From 1.4.0-1 this package provides a systemd service file at"
    echo "  /usr/lib/systemd/system/jupyterhub.service"
    echo "If you have a custom service in /etc/systemd/system or a"
    echo "similar location, it will continue to be used instead of the"
    echo "service from this package."
  fi

  # Warn about database schema changes.
  if [ $(vercmp "$2" 3.0.0-1) -lt 0 ]; then
    echo "Version 3.0.0 includes a database schema change. You will"
    echo "need to upgrade your database before you can run it."
    echo "See the JupyterHub documentation for details."
  fi
}