mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
user function
This commit is contained in:
parent
7bfebfff62
commit
e734d14637
43 changed files with 1280 additions and 54 deletions
|
@ -13,7 +13,7 @@ is_ip_valid() {
|
|||
is_ip_avalable() {
|
||||
ip_data=$(cat $VESTA/data/ips/$ip)
|
||||
owner=$(echo "$ip_data"|grep OWNER= | cut -f 2 -d \')
|
||||
status=$(echo "$ip_data"|grep OWNER= | cut -f 2 -d \')
|
||||
status=$(echo "$ip_data"|grep STATUS= | cut -f 2 -d \')
|
||||
shared=no
|
||||
if [ 'admin' = "$owner" ] && [ "$status" = 'shared' ]; then
|
||||
shared='yes'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue