Correr el servidor web

This commit is contained in:
f 2021-08-25 18:15:34 -03:00 committed by Nulo
parent b325035da0
commit c78456b789

View file

@ -177,14 +177,17 @@ crear_entorno() {
test -f "$ENTORNO/etc/ssl/certs/sutty.local.crt" || generar_certificado
}
DEFAULT="sh"
case $1 in
init) echo "export PATH=$DIR:\$PATH" ;;
init) echo "export PATH=$DIR:\$PATH" ; exit ;;
serve) shift; DEFAULT=nginx ;;
*)
if ! type "$SELF" >/dev/null 2>&1 ; then
echo "Tip: Inicia haini.sh con 'eval \$($0 init)' para poder ejecutar con solo 'haini.sh'" >&2
fi
crear_entorno
stdin=/dev/stdin correr "${*:-sh}"
;;
esac
crear_entorno
stdin=/dev/stdin correr "${*:-$DEFAULT}"