mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -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 \' )
|
||||
|
||||
# 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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue