mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
changed main username from vesta to admin
This commit is contained in:
parent
64def78645
commit
b9c9170f69
11 changed files with 18 additions and 18 deletions
|
@ -102,7 +102,7 @@ is_ip_avalable() {
|
|||
ip_status=$(echo "$ip_data" | grep 'STATUS=' | cut -f 2 -d \' )
|
||||
|
||||
# Parsing user data
|
||||
if [ 'vesta' = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then
|
||||
if [ 'admin' = "$ip_owner" ] && [ "$ip_status" = 'shared' ]; then
|
||||
ip_shared='yes'
|
||||
else
|
||||
ip_shared='no'
|
||||
|
|
|
@ -153,7 +153,7 @@ format_validation() {
|
|||
if [ -z "$check_at" ] ||\
|
||||
[ -z "$check_dt" ] ||\
|
||||
[ "${#check_dt}" -lt 2 ] &&\
|
||||
[ "$val" != 'vesta@localhost' ]; then
|
||||
[ "$val" != 'admin@localhost' ]; then
|
||||
echo "Error: email format is wrong"
|
||||
log_event 'debug' "$E_INVALID $V_EVENT"
|
||||
exit $E_INVALID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue