smeserver-mysql/root/etc/e-smith/templates/var/lib/mysql.private/set.password

10 lines
208 B
Plaintext
Raw Permalink Normal View History

{
use esmith::util;
my $pw = esmith::util::LdapPassword();
$OUT .= "use mysql;\n";
$OUT .= "SET PASSWORD FOR 'root'\@localhost = PASSWORD(\"$pw\"); \n";
$OUT .= "FLUSH PRIVILEGES;\n";
}