Commit a420dac4 authored by daidekun's avatar daidekun

ip_last

parent b90e1c07
...@@ -21,21 +21,7 @@ if [ $# -ne 8 ]; then ...@@ -21,21 +21,7 @@ if [ $# -ne 8 ]; then
fi fi
ip_last=$1 ip_last=$1
ip_pre="192.168." source_db_host="192.168.4.${$ip_last}"
source_db_host=""
result=$(echo $ip_last | grep "${ip_pre}")
if [[ "$result" != "" ]]
then
echo "使用完整ip地址"
ip_last=$1
source_db_host=$ip_last
else
echo "使用ip尾号"
ip_last=$1
source_db_host="192.168.4.${$ip_last}"
fi
source_db_user=$2 source_db_user=$2
source_db_pwd='Uiwb@o^fR&nHOa5t' source_db_pwd='Uiwb@o^fR&nHOa5t'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment