<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 #!/usr/bin/env ruby
 
+# set home as we runit as weekly cron, where HOME is /
+ENV['HOME'] = '/root'
 tables = %x{mysql -Bse &quot;SELECT TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND Data_free &gt; 0 AND ENGINE IN ('MyISAM','InnoDB','ARCHIVE')&quot;}
 tables.each { |table|
     tableitems = table.chomp.split(/\t/)</diff>
      <filename>files/optimize/optimize_tables.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>95c5cd82d9ef2b9b256dddf44531eb0bbf36a09f</id>
    </parent>
  </parents>
  <author>
    <name>mh</name>
    <email>mh@immerda.ch</email>
  </author>
  <url>http://github.com/duritong/puppet-mysql/commit/d4cccaa62fcd30b28fef076827ef1aad9e5b1eb9</url>
  <id>d4cccaa62fcd30b28fef076827ef1aad9e5b1eb9</id>
  <committed-date>2009-02-22T05:07:39-08:00</committed-date>
  <authored-date>2009-02-22T05:07:39-08:00</authored-date>
  <message>set home so .my.cnf is found as we run it as cron weekly</message>
  <tree>3e22ea8b51e905e6c3eafcc6b0eb4cfe926a8478</tree>
  <committer>
    <name>mh</name>
    <email>mh@immerda.ch</email>
  </committer>
</commit>
