From 2f6e8ce1746fa816891d1896f70830047e479d7f Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 22 Oct 2011 15:24:27 +0300 Subject: [PATCH] fixed ip ownership scheme --- func/ip_func.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/func/ip_func.sh b/func/ip_func.sh index bad59f3d..100e755e 100644 --- a/func/ip_func.sh +++ b/func/ip_func.sh @@ -102,8 +102,7 @@ is_ip_avalable() { ip_status=$(echo "$ip_data" | grep 'STATUS=' | cut -f 2 -d \' ) # Parsing user data - user_owner=$(grep 'OWNER=' $V_USERS/$user/user.conf | cut -f 2 -d \') - if [ "$user_owner" = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then + if [ 'vesta' = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then ip_shared='yes' else ip_shared='no'