From: Michael Fritch Date: Thu, 10 Mar 2022 17:18:51 +0000 (-0700) Subject: cephadm: preserve `authorized_keys` file during upgrade X-Git-Tag: v16.2.8~41^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23065e08ca36082557a5eb6cb1040e69b3338916;p=ceph.git cephadm: preserve `authorized_keys` file during upgrade Fixes: https://tracker.ceph.com/issues/54530 Signed-off-by: Michael Fritch (cherry picked from commit 781be8d44a8543aca87bba4f61ba47acc6046b49) --- diff --git a/ceph.spec.in b/ceph.spec.in index ebc2893cbd6..14b03314931 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1538,7 +1538,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