File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -160,12 +160,7 @@ if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
160160 for db in ${DB_SYSTEM// ,/ } ; do
161161 service=" $db "
162162 if [ " $service " == ' mysql' ]; then
163- if [ ! -e " /etc/init.d/$service " ]; then
164- service=' mysqld'
165- fi
166- if [ ! -e " /etc/redhat-release" ]; then
167- db_proc_name=' mysqld'
168- fi
163+ db_proc_name=' mysqld'
169164 fi
170165 if [ " $service " == ' pgsql' ]; then
171166 service=' postgresql'
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user"
3636# ----------------------------------------------------------#
3737
3838# Get list of ip addresses
39- ip_list=$( /sbin/ip addr | grep " inet " | grep -v " host lo " | awk ' {print $2}' )
39+ ip_list=$( /sbin/ip addr| grep ' inet ' | grep global | awk ' {print $2}' )
4040ip_list=$( echo " $ip_list " | cut -f 1 -d /)
4141ip_num=$( echo " $ip_list " | wc -l)
4242
You can’t perform that action at this time.
0 commit comments