mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
fixed ip ownership scheme
This commit is contained in:
parent
d6a51b89d2
commit
2f6e8ce174
1 changed files with 1 additions and 2 deletions
|
@ -102,8 +102,7 @@ is_ip_avalable() {
|
||||||
ip_status=$(echo "$ip_data" | grep 'STATUS=' | cut -f 2 -d \' )
|
ip_status=$(echo "$ip_data" | grep 'STATUS=' | cut -f 2 -d \' )
|
||||||
|
|
||||||
# Parsing user data
|
# Parsing user data
|
||||||
user_owner=$(grep 'OWNER=' $V_USERS/$user/user.conf | cut -f 2 -d \')
|
if [ 'vesta' = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then
|
||||||
if [ "$user_owner" = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then
|
|
||||||
ip_shared='yes'
|
ip_shared='yes'
|
||||||
else
|
else
|
||||||
ip_shared='no'
|
ip_shared='no'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue