]> git.pld-linux.org Git - packages/gitlab-ce.git/commitdiff
fix preinst trigger state check
authorElan Ruusamäe <glen@delfi.ee>
Fri, 27 May 2016 05:40:57 +0000 (08:40 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 27 May 2016 05:40:57 +0000 (08:40 +0300)
gitlab-ce.spec

index 3d3de9aeb8443c124cc77c4071de41b9ad122b01..bbf34ac9d20dacb917e63258754b47291b88362e 100644 (file)
@@ -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
This page took 1.867917 seconds and 4 git commands to generate.