diff options
Diffstat (limited to 'jupyterhub')
-rw-r--r-- | jupyterhub/PKGBUILD | 1 | ||||
-rw-r--r-- | jupyterhub/jupyterhub.install | 7 |
2 files changed, 8 insertions, 0 deletions
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 +} |