From: Boris Ranto Date: Fri, 7 Jul 2017 10:37:55 +0000 (+0200) Subject: rpm: Fix undefined FIRST_ARG X-Git-Tag: v11.2.1~2^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d24edde072ec63d35965e30a58aaaf02547f9c57;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 (cherry picked from commit 562816914ccca8e4e7d9c31f333db2f0da6f7c99) --- diff --git a/ceph.spec.in b/ceph.spec.in index d2dc82634ee..3d391bb4068 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -908,6 +908,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