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