From 86a8fb2e09a3ce179fb927451c966cf11c635f7b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 11 Jan 2017 19:50:06 +0100 Subject: jupyterhub: add comment for upgrade to 0.7 --- jupyterhub/PKGBUILD | 1 + jupyterhub/jupyterhub.install | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 jupyterhub/jupyterhub.install (limited to 'jupyterhub') diff --git a/jupyterhub/PKGBUILD b/jupyterhub/PKGBUILD index a5e8c7c6..95e6eeab 100644 --- a/jupyterhub/PKGBUILD +++ b/jupyterhub/PKGBUILD @@ -11,6 +11,7 @@ depends=('python>=3.6' 'python<3.7' 'python-alembic' 'python-tornado' 'python-ji makedepends=('bower' 'npm') source=("https://github.com/jupyterhub/jupyterhub/archive/${pkgver}.tar.gz") sha512sums=('91d00b99dac8ba4ec424433549cb6a56b7719eb97fc75b86d6a33b56557a5cad60e43032e6ab9f83aa98d4629580f795f5ff41ae34a7598a0eca5055afbb8956') +install=${pkgname}.install build() { cd "${srcdir}/jupyterhub-$pkgver" diff --git a/jupyterhub/jupyterhub.install b/jupyterhub/jupyterhub.install new file mode 100644 index 00000000..36ae57a8 --- /dev/null +++ b/jupyterhub/jupyterhub.install @@ -0,0 +1,7 @@ +post_upgrade() { + if [ "$(vercmp "$1" "0.7")" == "1" ] && [ "$(vercmp "$2" "0.7")" == "-1" ] + then + echo "Database format has changed." + echo "Call \"jupyterhub upgrade-db\" in all directories you're running jupyterhub to upgrade its database." + fi +} -- cgit v1.2.3-54-g00ecf