From ea9aac50a3aa46787e2f827cee560a1479f76763 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 19 Aug 2020 13:58:03 +0200 Subject: [PATCH] explicit path refix for ssh-keygen --- lib/includes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/includes b/lib/includes index 745f477..ac88e1e 100755 --- a/lib/includes +++ b/lib/includes @@ -258,7 +258,7 @@ setup_jail_chroot() { touch ./var/log/lastlog ./var/log/wtmp ./run/utmp info "2 - Copying essential files" - ssh-keygen -A -f . + ssh-keygen -A -f "${jail_path}" touch "./${AUTHORIZED_KEYS}" chmod 600 "./${AUTHORIZED_KEYS}" cp "${passwd}" ./etc