/[smeserver]/rpms/e-smith-mysql/sme7/e-smith-mysql-1.12.0-setpassword.patch2
ViewVC logotype

Annotation of /rpms/e-smith-mysql/sme7/e-smith-mysql-1.12.0-setpassword.patch2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Oct 7 18:44:56 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

1 slords 1.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";

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed