File 0001-Fix-authorized-keys-location-for-OpenSUSE.patch of Package afterburn

From e184a10df39bb4b4969715305f54b798b74643fc Mon Sep 17 00:00:00 2001
From: Robert Schweikert <rjschwei@suse.com>
Date: Wed, 7 May 2025 18:36:15 +0200
Subject: [PATCH 1/3] Fix authorized keys location for OpenSUSE

Write the ssh keys to the standard location
---
 src/providers/mod.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/providers/mod.rs b/src/providers/mod.rs
index dab07e1..5bbc0a4 100644
--- a/src/providers/mod.rs
+++ b/src/providers/mod.rs
@@ -102,8 +102,8 @@ fn write_ssh_keys(user: User, ssh_keys: Vec<PublicKey>) -> Result<()> {
         .context("failed to switch user/group")?;
 
     // get paths
-    let dir_path = user.home_dir().join(".ssh").join("authorized_keys.d");
-    let file_name = "afterburn";
+    let dir_path = user.home_dir().join(".ssh");
+    let file_name = "authorized_keys";
     let file_path = &dir_path.join(file_name);
 
     // stringify for logging
-- 
2.47.2

openSUSE Build Service is sponsored by