File tree Expand file tree Collapse file tree 11 files changed +18
-18
lines changed
Expand file tree Collapse file tree 11 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1818ip=$1
1919mask=$2
2020interface=" ${3-eth0} "
21- user=" ${4-vesta } "
21+ user=" ${4-admin } "
2222ip_status=" ${5-shared} "
2323ip_name=$6
2424
Original file line number Diff line number Diff line change @@ -89,9 +89,9 @@ echo -e "$(date "+%F %T") user.conf"
8989
9090cp -r $V_USERS /$user /user.conf $tmpdir /vesta/
9191
92- if [ -e " $V_USERS /$user /billing .log" ]; then
93- echo -e " $( date " +%F %T" ) billing .log"
94- cp -r $V_USERS /$user /billing .log $tmpdir /vesta/
92+ if [ -e " $V_USERS /$user /stats .log" ]; then
93+ echo -e " $( date " +%F %T" ) stats .log"
94+ cp -r $V_USERS /$user /stats .log $tmpdir /vesta/
9595fi
9696
9797if [ -e " $V_USERS /$user /history.log" ]; then
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ is_user_valid
3838# Checking user is active
3939is_user_suspended
4040
41- # Checking user vesta
42- if [ " $user " = ' vesta ' ]; then
41+ # Checking user admin
42+ if [ " $user " = ' admin ' ]; then
4343 exit
4444fi
4545
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ is_user_valid
3636is_user_suspended
3737
3838# Checking user vesta
39- if [ " $user " = ' vesta ' ]; then
39+ if [ " $user " = ' admin ' ]; then
4040 exit
4141fi
4242
@@ -55,7 +55,7 @@ for ip in $ip_list; do
5555 is_ip_key_empty ' $U_SYS_USERS'
5656
5757 # Assig ip to main account
58- update_sys_ip_value ' $OWNER' ' vesta '
58+ update_sys_ip_value ' $OWNER' ' admin '
5959 update_sys_ip_value ' $STATUS' ' exclusive'
6060
6161done
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ json_list_user_ips() {
2323 echo ' {'
2424
2525 owned_ips=$( grep -l " OWNER='$user '" $V_IPS /* )
26- shared_ips=$( grep -H -A5 " OWNER='vesta '" $V_IPS /* | \
26+ shared_ips=$( grep -H -A5 " OWNER='admin '" $V_IPS /* | \
2727 grep " STATUS='shared'" | \
2828 cut -f 1 -d - )
2929
@@ -75,7 +75,7 @@ json_list_user_ips() {
7575# Shell function
7676shell_list_user_ips () {
7777 owned_ips=$( grep -l " OWNER='$user '" $V_IPS /* )
78- shared_ips=$( grep -H -A5 " OWNER='vesta '" $V_IPS /* | \
78+ shared_ips=$( grep -H -A5 " OWNER='admin '" $V_IPS /* | \
7979 grep " STATUS='shared'" | \
8080 cut -f 1 -d - )
8181
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ is_user_valid
3434# Checking user status
3535is_user_suspended
3636
37- # Checking user vesta
38- if [ " $user " = ' vesta ' ]; then
37+ # Checking user admin
38+ if [ " $user " = ' admin ' ]; then
3939 exit
4040fi
4141
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ format_validation 'user'
3131# Checking user
3232is_user_valid
3333
34- # Checking user vesta
35- if [ " $user " = ' vesta ' ]; then
34+ # Checking user admin
35+ if [ " $user " = ' admin ' ]; then
3636 exit
3737fi
3838
Original file line number Diff line number Diff line change 1212# ----------------------------------------------------------#
1313
1414# Argument defenition
15- user=${1-vesta }
15+ user=${1-admin }
1616ip_status=${2-shared}
1717
1818# Importing variables
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ for user in $user_list; do
8282 IFS=$' \n '
8383
8484 # Checking users
85- if [ " $user " = ' vesta ' ]; then
85+ if [ " $user " = ' admin ' ]; then
8686 SUSPENDED_USERS=$( grep " SUSPENDED='yes'" $V_USERS /* /user.conf| wc -l)
8787 U_USERS=$( ls $V_USERS /| wc -l)
8888 U_USERS=$(( U_USERS - 1 ))
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ is_ip_avalable() {
102102 ip_status=$(echo "$ip_data" | grep 'STATUS=' | cut -f 2 -d \' )
103103
104104 # Parsing user data
105- if [ 'vesta ' = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then
105+ if [ 'admin ' = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then
106106 ip_shared='yes'
107107 else
108108 ip_shared='no'
You can’t perform that action at this time.
0 commit comments