This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SED=`which sed` | |
| CURRENT_DIR=`dirname $0` | |
| echo "What is the domain?" | |
| read DOMAIN | |
| # check the domain is valid! | |
| PATTERN="^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$"; | |
| if [[ "$DOMAIN" =~ $PATTERN ]]; then | |
| DOMAIN=`echo $DOMAIN | tr '[A-Z]' '[a-z]'` |