Skip to content

Commit b9c9170

Browse files
committed
changed main username from vesta to admin
1 parent 64def78 commit b9c9170

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

bin/v_add_sys_ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ip=$1
1919
mask=$2
2020
interface="${3-eth0}"
21-
user="${4-vesta}"
21+
user="${4-admin}"
2222
ip_status="${5-shared}"
2323
ip_name=$6
2424

bin/v_backup_user

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ echo -e "$(date "+%F %T") user.conf"
8989

9090
cp -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/
9595
fi
9696

9797
if [ -e "$V_USERS/$user/history.log" ]; then

bin/v_delete_user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ is_user_valid
3838
# Checking user is active
3939
is_user_suspended
4040

41-
# Checking user vesta
42-
if [ "$user" = 'vesta' ]; then
41+
# Checking user admin
42+
if [ "$user" = 'admin' ]; then
4343
exit
4444
fi
4545

bin/v_delete_user_ips

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ is_user_valid
3636
is_user_suspended
3737

3838
# Checking user vesta
39-
if [ "$user" = 'vesta' ]; then
39+
if [ "$user" = 'admin' ]; then
4040
exit
4141
fi
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

6161
done

bin/v_list_user_ips

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
7676
shell_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

bin/v_suspend_user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ is_user_valid
3434
# Checking user status
3535
is_user_suspended
3636

37-
# Checking user vesta
38-
if [ "$user" = 'vesta' ]; then
37+
# Checking user admin
38+
if [ "$user" = 'admin' ]; then
3939
exit
4040
fi
4141

bin/v_unsuspend_user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ format_validation 'user'
3131
# Checking user
3232
is_user_valid
3333

34-
# Checking user vesta
35-
if [ "$user" = 'vesta' ]; then
34+
# Checking user admin
35+
if [ "$user" = 'admin' ]; then
3636
exit
3737
fi
3838

bin/v_update_sys_ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#----------------------------------------------------------#
1313

1414
# Argument defenition
15-
user=${1-vesta}
15+
user=${1-admin}
1616
ip_status=${2-shared}
1717

1818
# Importing variables

bin/v_update_user_counters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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))

func/ip.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)