From: Boris Ranto Date: Fri, 7 Jul 2017 10:37:55 +0000 (+0200) Subject: rpm: Fix undefined FIRST_ARG X-Git-Tag: v12.1.1~140^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=562816914ccca8e4e7d9c31f333db2f0da6f7c99;p=ceph.git rpm: Fix undefined FIRST_ARG 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 2abd91a25756..2f8b4541418b 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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