summaryrefslogtreecommitdiff
path: root/jupyterhub
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-01-11 19:50:06 +0100
committerErich Eckner <git@eckner.net>2017-01-11 19:50:15 +0100
commit86a8fb2e09a3ce179fb927451c966cf11c635f7b (patch)
tree44e83105cd583ac77f6a049cabae7708789b953b /jupyterhub
parent9fafb1ca738853cffe5866d37a522bd9004da9c8 (diff)
downloadarchlinuxewe-86a8fb2e09a3ce179fb927451c966cf11c635f7b.tar.xz
jupyterhub: add comment for upgrade to 0.7
Diffstat (limited to 'jupyterhub')
-rw-r--r--jupyterhub/PKGBUILD1
-rw-r--r--jupyterhub/jupyterhub.install7
2 files changed, 8 insertions, 0 deletions
diff --git a/jupyterhub/PKGBUILD b/jupyterhub/PKGBUILD
index a5e8c7c60..95e6eeab3 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 000000000..36ae57a8d
--- /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
+}