[BUG] fixed install scripts logic
[BUG] syntax error with shell
[BUG,IMP] fix and improve email configuring mailer and database connection