PersiLiao 4 лет назад
Родитель
Сommit
86fad03847
2 измененных файлов с 6 добавлено и 0 удалено
  1. 5 0
      addons.sh
  2. 1 0
      vhost.sh

+ 5 - 0
addons.sh

@@ -18,9 +18,11 @@ printf "
 #######################################################################
 "
 # Check if user is root
+# shellcheck disable=SC2046
 [ $(id -u) != '0' ] && { echo "${CFAILURE}Error: You must be root to run this script${CEND}"; exit 1; }
 
 oneinstack_dir=$(dirname "`readlink -f $0`")
+# shellcheck disable=SC2164
 pushd ${oneinstack_dir} > /dev/null
 
 . ./versions.txt
@@ -40,6 +42,7 @@ pushd ${oneinstack_dir} > /dev/null
 
 . ./include/panel.sh
 
+# shellcheck disable=SC2154
 Show_Help() {
   echo
   echo "Usage: $0  command ...
@@ -146,7 +149,9 @@ What Are You Doing?
         3)
           ACTION_FUN
           if [ "${install_flag}" = 'y' ]; then
+            # shellcheck disable=SC2154
             [ -e "${nginx_install_dir}/sbin/nginx" ] && Nginx_lua_waf
+            # shellcheck disable=SC2154
             [ -e "${tengine_install_dir}/sbin/nginx" ] && Tengine_lua_waf
             enable_lua_waf
           elif [ "${uninstall_flag}" = 'y' ]; then

+ 1 - 0
vhost.sh

@@ -209,6 +209,7 @@ If you enter '.', the field will be left blank.
     echo
     read -e -p "Country Name (2 letter code) [CN]: " SELFSIGNEDSSL_C
     SELFSIGNEDSSL_C=${SELFSIGNEDSSL_C:-CN}
+    # shellcheck disable=SC2104
     [ ${#SELFSIGNEDSSL_C} != 2 ] && { echo "${CWARNING}input error, You must input 2 letter code country name${CEND}"; continue; }
     echo
     read -e -p "State or Province Name (full name) [Shanghai]: " SELFSIGNEDSSL_ST