Correr el servidor web
This commit is contained in:
parent
b325035da0
commit
c78456b789
1 changed files with 7 additions and 4 deletions
11
haini.sh
11
haini.sh
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue