password transmission via tmp files

This commit is contained in:
Serghey Rodin 2015-03-29 12:39:42 +03:00
commit 1bcdef615c
15 changed files with 152 additions and 32 deletions

View file

@ -13,7 +13,7 @@
# Argument defenition
user=$1
database=$2
dbpass=$3
password=$3
# Includes
source $VESTA/func/main.sh
@ -30,13 +30,14 @@ EVENT="$DATE $TIME $SCRIPT $A1 $A2 $A3 $A4 $A5 $A6 $A7 $A8 $A9"
#----------------------------------------------------------#
check_args '3' "$#" 'USER DATABASE DBPASS'
validate_format 'user' 'database' 'dbpass'
validate_format 'user' 'database'
is_system_enabled "$DB_SYSTEM" 'DB_SYSTEM'
is_object_valid 'user' 'USER' "$user"
is_object_unsuspended 'user' 'USER' "$user"
is_object_valid 'db' 'DB' "$database"
is_object_unsuspended 'db' 'DB' "$database"
is_password_valid
dbpass="$password"
#----------------------------------------------------------#
# Action #