jamielinux pushed to nginx (master). "Run nginx-upgrade on package update"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun May 10 08:29:05 UTC 2015


From 5892e54ae95d027d983609130a3835dbce3b1c6e Mon Sep 17 00:00:00 2001
From: Jamie Nguyen <j at jamielinux.com>
Date: Sun, 10 May 2015 09:10:51 +0100
Subject: Run nginx-upgrade on package update


diff --git a/nginx.spec b/nginx.spec
index 1f28d42..bc27465 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -216,6 +216,9 @@ fi
 
 %postun
 %systemd_postun nginx.service
+if [ $1 -ge 1 ]; then
+    /usr/bin/nginx-upgrade >/dev/null 2>&1 || :
+fi
 
 %files
 %doc LICENSE CHANGES README
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/nginx.git/commit/?h=master&id=5892e54ae95d027d983609130a3835dbce3b1c6e


More information about the scm-commits mailing list