kopia lustrzana https://github.com/c9/core
found the correct incantation
rodzic
1c33465119
commit
bbf4fb5b12
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# http://apetec.com/support/GenerateSAN-CSR.htm
|
# http://apetec.com/support/GenerateSAN-CSR.htm
|
||||||
# http://chschneider.eu/linux/server/openssl.shtml
|
# http://chschneider.eu/linux/server/openssl.shtml
|
||||||
|
|
||||||
DOMAIN=$1
|
DOMAIN=${1:-c9.dev}
|
||||||
IP=$2
|
IP=${2:-127.0.0.1}
|
||||||
if [ -z "$DOMAIN" ]; then DOMAIN=c9.dev; fi
|
|
||||||
if [ -z "$IP" ]; then IP=127.0.0.1; fi
|
|
||||||
|
|
||||||
if [[ "$DOMAIN" =~ [/[:space:]] ]]; then echo "Invalid domain name $DOMAIN"; exit 1; fi
|
if [[ "$DOMAIN$IP" =~ [/[:space:]] ]]; then
|
||||||
|
echo "$DOMAIN and $IP can't contain special character";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
FQDN="
|
FQDN="
|
||||||
IP.1 = $IP
|
IP.1 = $IP
|
||||||
|
|
Ładowanie…
Reference in New Issue