1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/e-smith/sql/init/00_restore_dumped_dbs mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/e-smith/sql/init/00_restore_dumped_dbs |
2 |
--- e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/e-smith/sql/init/00_restore_dumped_dbs 2006-03-16 17:44:28.000000000 +1100 |
3 |
+++ mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/templates/etc/e-smith/sql/init/00_restore_dumped_dbs 2006-04-10 19:02:01.428182937 +1000 |
4 |
@@ -1,7 +1,6 @@ |
5 |
#! /bin/sh |
6 |
|
7 |
( cat /home/e-smith/db/mysql/mysql.dump ; |
8 |
- echo "use mysql; ALTER TABLE user MODIFY Password char(41) NOT NULL default '';" ; |
9 |
cat /service/mysqld/set.password ) | mysql |
10 |
P=$(cat /var/run/mysqld/mysqld.pid) |
11 |
/bin/rm /var/run/mysqld/mysqld.pid |
12 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-mysql-1.12.0/root/etc/e-smith/templates/var/service/mysqld/set.password mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/templates/var/service/mysqld/set.password |
13 |
--- e-smith-mysql-1.12.0/root/etc/e-smith/templates/var/service/mysqld/set.password 2006-03-16 17:44:28.000000000 +1100 |
14 |
+++ mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/templates/var/service/mysqld/set.password 2006-04-10 19:01:44.633079180 +1000 |
15 |
@@ -4,6 +4,7 @@ |
16 |
my $pw = esmith::util::LdapPassword(); |
17 |
|
18 |
$OUT .= "use mysql;\n"; |
19 |
+ $OUT .= "ALTER TABLE user MODIFY Password char(41) NOT NULL default '';\n"; |
20 |
$OUT .= "UPDATE user SET password=password('$pw') WHERE user='root';\n"; |
21 |
$OUT .= "DELETE FROM user WHERE user='';\n"; |
22 |
$OUT .= "FLUSH PRIVILEGES\n"; |