mirror of
https://github.com/myvesta/vesta
synced 2025-07-08 05:51:25 -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
|
@ -17,7 +17,7 @@
|
|||
type=$1
|
||||
host=$2
|
||||
dbuser=$3
|
||||
password=$4
|
||||
password=$4; HIDE=4
|
||||
max_db=${6-500}
|
||||
charsets=${7-UTF8,LATIN1,WIN1250,WIN1251,WIN1252,WIN1256,WIN1258,KOI8}
|
||||
template=${8-template1}
|
||||
|
@ -27,10 +27,6 @@ source $VESTA/func/main.sh
|
|||
source $VESTA/func/db.sh
|
||||
source $VESTA/conf/vesta.conf
|
||||
|
||||
# Hiding password
|
||||
A4='******'
|
||||
EVENT="$DATE $TIME $SCRIPT $A1 $A2 $A3 $A4 $A5 $A6 $A7 $A8 $A9"
|
||||
|
||||
is_mysql_host_alive() {
|
||||
mycnf=$(mktemp)
|
||||
echo "[client]">$mycnf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue