mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
New syntax to hide password from logger
This commit is contained in:
parent
a9cbdfe6ff
commit
6691ea2c8b
15 changed files with 57 additions and 115 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
# Argument defenition
|
||||
user=$1
|
||||
password=$2
|
||||
password=$2; HIDE=2
|
||||
email=$3
|
||||
package=${4-default}
|
||||
fname=$5
|
||||
|
@ -21,10 +21,6 @@ lname=$6
|
|||
source $VESTA/func/main.sh
|
||||
source $VESTA/conf/vesta.conf
|
||||
|
||||
# Hiding password
|
||||
A2='******'
|
||||
EVENT="$DATE $TIME $SCRIPT $A1 $A2 $A3 $A4 $A5 $A6 $A7 $A8 $A9"
|
||||
|
||||
is_user_free() {
|
||||
check_sysuser=$(cut -f 1 -d : /etc/passwd | grep -w "$user" )
|
||||
if [ ! -z "$check_sysuser" ] || [ -e "$USER_DATA" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue