]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Fix undefined FIRST_ARG 16208/head
authorBoris Ranto <branto@redhat.com>
Fri, 7 Jul 2017 10:37:55 +0000 (12:37 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 7 Jul 2017 12:42:54 +0000 (14:42 +0200)
If FIRST_ARG is undefined, the rpms will show an error on upgrade
because the condition in the postun script gets broken.

This was a regression introduced by commit for issue 20077 that moved
ceph-disk unit files to ceph-base.

Fixes: http://tracker.ceph.com/issues/20077
Signed-off-by: Boris Ranto <branto@redhat.com>
ceph.spec.in

index 2abd91a2575644ea7eb1b499d5294815da4440b1..2f8b4541418b9ee619762a5ce5368526b1b2966d 100644 (file)
@@ -1007,6 +1007,7 @@ fi
 
 %postun base
 /sbin/ldconfig
+test -n "$FIRST_ARG" || FIRST_ARG=$1
 %if 0%{?suse_version}
 DISABLE_RESTART_ON_UPDATE="yes"
 %service_del_postun ceph-disk@\*.service ceph.target