From d7278ecd22dd3d5ee3adf0812421d31911d05cbe Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Thu, 10 Mar 2022 10:18:51 -0700 Subject: [PATCH] cephadm: preserve `authorized_keys` file during upgrade Fixes: https://tracker.ceph.com/issues/54530 Signed-off-by: Michael Fritch (cherry picked from commit 781be8d44a8543aca87bba4f61ba47acc6046b49) --- ceph.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index cece4e90120b..8ac2681fadb1 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1462,7 +1462,7 @@ exit 0 %{_mandir}/man8/cephadm.8* %attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm %attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm/.ssh -%attr(0600,cephadm,cephadm) %{_sharedstatedir}/cephadm/.ssh/authorized_keys +%config(noreplace) %attr(0600,cephadm,cephadm) %{_sharedstatedir}/cephadm/.ssh/authorized_keys %files common %dir %{_docdir}/ceph -- 2.47.3