diff --git a/bin/v-list-sys-services b/bin/v-list-sys-services index f1762737..e8d79c90 100755 --- a/bin/v-list-sys-services +++ b/bin/v-list-sys-services @@ -160,12 +160,7 @@ if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then for db in ${DB_SYSTEM//,/ }; do service="$db" if [ "$service" == 'mysql' ]; then - if [ ! -e "/etc/init.d/$service" ]; then - service='mysqld' - fi - if [ ! -e "/etc/redhat-release" ]; then - db_proc_name='mysqld' - fi + db_proc_name='mysqld' fi if [ "$service" == 'pgsql' ]; then service='postgresql' diff --git a/bin/v-update-sys-ip b/bin/v-update-sys-ip index 43538a10..0d064370 100755 --- a/bin/v-update-sys-ip +++ b/bin/v-update-sys-ip @@ -36,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user" #----------------------------------------------------------# # Get list of ip addresses -ip_list=$(/sbin/ip addr |grep "inet "|grep -v "host lo" |awk '{print $2}') +ip_list=$(/sbin/ip addr|grep 'inet '|grep global|awk '{print $2}') ip_list=$(echo "$ip_list"|cut -f 1 -d /) ip_num=$(echo "$ip_list" | wc -l)