diff options
author | Blair Bonnett | 2021-04-25 12:54:31 +0200 |
---|---|---|
committer | Blair Bonnett | 2021-04-25 12:54:31 +0200 |
commit | efdc65659a1a725ed90e08c1485c2ec9bd1f3367 (patch) | |
tree | 9625517e578bc21131fa2dbbb8ab7af8859c0d65 /jupyterhub.install | |
parent | 0015e58680c8d9fad29dfc8da8469638f3e007c5 (diff) | |
download | aur-efdc65659a1a725ed90e08c1485c2ec9bd1f3367.tar.gz |
Update to 1.4.0
* Include default configuration in package
* Run tests in check()
* Add systemd service with some hardening. Install script will notify
users on upgrade. Since its in /usr/lib/systemd/system, any custom
services in /etc/systemd/system will continue to be used instead of
the package one.
Diffstat (limited to 'jupyterhub.install')
-rw-r--r-- | jupyterhub.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jupyterhub.install b/jupyterhub.install new file mode 100644 index 000000000000..46d662721368 --- /dev/null +++ b/jupyterhub.install @@ -0,0 +1,12 @@ +## 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 +} |