lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 37558eeb: Copy gnupg as well as ssh credentia


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 37558eeb: Copy gnupg as well as ssh credentials to chroot
Date: Tue, 18 Apr 2023 06:18:00 -0400 (EDT)

branch: master
commit 37558eebf72cbae0f37800cd73733efcce8079af
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Copy gnupg as well as ssh credentials to chroot
---
 lmi_setup_30.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lmi_setup_30.sh b/lmi_setup_30.sh
index 8c4777b7..0bec3600 100755
--- a/lmi_setup_30.sh
+++ b/lmi_setup_30.sh
@@ -71,9 +71,10 @@ assert_not_chrooted
 # setopt extended_glob &&
 #   sudo cp -a /mnt/sda1/srv/chroot/lmi-buster2/opt/^lmi 
/srv/chroot/"${CHRTNAME}"/opt
 
-# Configure ssh, iff this chroot needs write access to savannah.
-# The easiest way is to copy existing credentials, e.g.:
-cp -a ~/.ssh/ /srv/chroot/"${CHRTNAME}"/home/"${NORMAL_USER}" || true
+# Copy gnupg and ssh credentials, if the user has them (for write
+# access to savannah):
+cp -a ~/.ssh/   /srv/chroot/"${CHRTNAME}"/home/"${NORMAL_USER}" || true
+cp -a ~/.gnupg/ /srv/chroot/"${CHRTNAME}"/home/"${NORMAL_USER}" || true
 # ignoring any message like
 #   cannot stat ‘/home/[some_user_name]/.ssh/’: No such file or directory
 #



reply via email to

[Prev in Thread] Current Thread [Next in Thread]