[packages/gitlab-ce] fix preinst trigger state check

glen glen at pld-linux.org
Fri May 27 07:41:15 CEST 2016


commit d5651fee86fa06b0dc7d7bcbf6c2a4fa5565659e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 27 08:40:57 2016 +0300

    fix preinst trigger state check

 gitlab-ce.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gitlab-ce.spec b/gitlab-ce.spec
index 3d3de9a..bbf34ac 100644
--- a/gitlab-ce.spec
+++ b/gitlab-ce.spec
@@ -204,7 +204,7 @@ install -p %{SOURCE11} $RPM_BUILD_ROOT%{_sbindir}/gitlab-ctl
 rm -rf "$RPM_BUILD_ROOT"
 
 %pre
-if [ "$2" = "2" ]; then
+if [ "$1" = "2" ]; then
 	# Looks like an RPM upgrade
 	gitlab-ctl preinst
 fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/d5651fee86fa06b0dc7d7bcbf6c2a4fa5565659e



More information about the pld-cvs-commit mailing list