update
This commit is contained in:
@@ -510,17 +510,6 @@ SITEINFO(){
|
||||
cw_spc6=8
|
||||
cw_spc7=15
|
||||
dl=110
|
||||
MIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
||||
var=${NTYPE}_HOSTS[@]
|
||||
NODE_TYPE=""
|
||||
for nip in "${!var}"; do
|
||||
if [[ "${MIP}" == *"${nip}"* ]]; then
|
||||
NODE_TYPE=${NTYPE};
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
if [ "${1}" == "edit" ]; then
|
||||
[ "${2}" == "" ] && echo -e "${idsCL[LightGreen]}Choose a site from the list below to edit: ${idsCL[Default]}"
|
||||
@@ -528,7 +517,7 @@ SITEINFO(){
|
||||
echo -e "${idsCL[LightGreen]}Local NGINX Sites ${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
gosite=${NODE_TYPE}_NGINX_SITES
|
||||
gosite=${RUN_NODE_TYPE}_NGINX_SITES
|
||||
declare -A SITELIST
|
||||
if [ "${!gosite}" != "" ]; then
|
||||
sites=$(find ${!gosite}/*); i=0
|
||||
|
||||
Reference in New Issue
Block a user