init
This commit is contained in:
parent
d33e051335
commit
6cbd6564be
@ -1,6 +1,6 @@
|
||||
# owl-installer
|
||||
|
||||
owl knowledge base installer.
|
||||
owl knowledge base web app installer.
|
||||
|
||||
```bash
|
||||
bash owl_installer.sh
|
||||
|
@ -52,6 +52,8 @@ Y="\e[33m" # yellow
|
||||
B="\e[34m" # blue
|
||||
N="\e[0m" # no color
|
||||
|
||||
PATTERN='Yes|yes|Y|y' # action confirmation words
|
||||
|
||||
owl_abort() {
|
||||
echo -e "${R}Abort!${N}"
|
||||
exit
|
||||
@ -78,7 +80,6 @@ fi
|
||||
owl_get_domain() {
|
||||
echo -n 'Enter your domain name: '
|
||||
read OWL_DOMAIN
|
||||
PATTERN='Yes|yes|Y|y'
|
||||
echo -en "This is correct domain?: ${Y}$OWL_DOMAIN${N} [y/N]: "
|
||||
while read; do
|
||||
if [[ "$REPLY" =~ $PATTERN ]]; then
|
||||
@ -218,7 +219,6 @@ owl_done() {
|
||||
echo -e "${G}Let's check it out in browser:${N} http://$OWL_DOMAIN/"
|
||||
}
|
||||
|
||||
PATTERN='Yes|yes|Y|y'
|
||||
echo -en "Install owl into current directory?: ${Y}$PWD${N} [y/N]: "
|
||||
while read; do
|
||||
if [[ "$REPLY" =~ $PATTERN ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user