From 150a6959634f152a92b8372493ccdc8f8c66e8e8 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 bb3c0553af5a3..dbaefec3d967a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1547,7 +1547,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.39.5