From 6cbd6564be194e9021eb8479450e4bceeb7681d6 Mon Sep 17 00:00:00 2001 From: gd Date: Sun, 28 Mar 2021 02:52:38 +0300 Subject: [PATCH] init --- README.md | 2 +- owl_installer.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 34b395b..32a8e60 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # owl-installer -owl knowledge base installer. +owl knowledge base web app installer. ```bash bash owl_installer.sh diff --git a/owl_installer.sh b/owl_installer.sh index 8554e10..e64ce51 100644 --- a/owl_installer.sh +++ b/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