help/param msg update

This commit is contained in:
Cold-Egg
2020-03-06 12:07:12 -05:00
parent 97e3cbd3fb
commit 6ab4d1fd98
8 changed files with 72 additions and 31 deletions
+16 -6
View File
@@ -11,11 +11,21 @@ PUB_IP=$(curl -s http://checkip.amazonaws.com)
DB_HOST='mysql'
PLUGINLIST="litespeed-cache.zip"
THEME='twentytwenty'
EPACE=' '
echow(){
FLAG=${1}
shift
echo -e "\033[1m${EPACE}${FLAG}\033[0m${@}"
}
help_message(){
echo 'Command [-app app_name] [-domain domain_name]'
echo 'Example: appinstallctl.sh -app wordpress -d example.com'
exit 0
echo -e "\033[1mOPTIONS\033[0m"
echow '-A, -app [wordpress] -D, --domain [DOMAIN_NAME]'
echo "${EPACE}${EPACE}Example: appinstallctl.sh --app wordpress --domain example.com"
echow '-H, --help'
echo "${EPACE}${EPACE}Display help and exit."
exit 0
}
check_input(){
@@ -276,15 +286,15 @@ while [ ! -z "${1}" ]; do
-[hH] | -help | --help)
help_message
;;
-app | -a | -A) shift
-[aA] | -app | --app) shift
check_input "${1}"
APP_NAME="${1}"
;;
-d | -D | -domain) shift
-[dD] | -domain | --domain) shift
check_input "${1}"
DOMAIN="${1}"
;;
-vhname) shift
-vhname | --vhname) shift
VHNAME="${1}"
;;
*)