From 74a4985ea20bf0de4f89fbd095860432429a1a08 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 28 Sep 2021 13:10:51 -0300 Subject: [PATCH] Instalar archivos dentro de /home/suttier --- haini.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/haini.sh b/haini.sh index 38ec411..d715e8d 100755 --- a/haini.sh +++ b/haini.sh @@ -208,8 +208,9 @@ crear_entorno() { done # Configurar SSH - install -m 644 "$DIR/ssh/known_hosts" "$ENTORNO/root/known_hosts" - install -m 644 "$DIR/ssh/config" "$ENTORNO/etc/ssh_config" + install -m 700 -d "$ENTORNO/home/suttier/.ssh" + install -m 644 "$DIR/ssh/known_hosts" "$ENTORNO/home/suttier/.ssh/known_hosts" + install -m 644 "$DIR/ssh/config" "$ENTORNO/home/suttier/.ssh/config" test -f "$ENTORNO/etc/ssl/certs/sutty.local.crt" || generar_certificado test -f "$ENTORNO/usr/local/share/ca-certificates/ca-sutty.crt" || mv "$ENTORNO/etc/ssl/certs/ca-sutty.crt" "$ENTORNO/usr/local/share/ca-certificates/ca-sutty.crt"