Merge branch 'idempotencia' into 'antifascista'

Migrar certificados a nueva ubicación si fueron creados antes

See merge request sutty/haini.sh!20
This commit is contained in:
fauno 2021-08-26 12:08:15 +00:00
commit 32442afdf7

View file

@ -176,6 +176,7 @@ crear_entorno() {
done
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"
}
DEFAULT="sh"