From 562816914ccca8e4e7d9c31f333db2f0da6f7c99 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Fri, 7 Jul 2017 12:37:55 +0200 Subject: [PATCH] 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 --- ceph.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/ceph.spec.in b/ceph.spec.in index 2abd91a257564..2f8b4541418b9 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 -- 2.39.5