Instalar archivos dentro de /home/suttier

This commit is contained in:
f 2021-09-28 13:10:51 -03:00
parent 19aac59bdc
commit 74a4985ea2

View file

@ -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"