Changes

Jump to navigation Jump to search
Line 462: Line 462:     
  %post
 
  %post
 +
/etc/e-smith/events/actions/initialize-default-databases (needed if a contrib and it contains DB templates)
 
  expand-template /etc/e-smith/sql/init/loggerdemo-create-schema.sql
 
  expand-template /etc/e-smith/sql/init/loggerdemo-create-schema.sql
  /etc/rc.d/init.d/mysql.init
+
  /etc/rc.d/init.d/mysql.init start
 
  true
 
  true
 +
    
Installing this RPM will create the <tt class="FILENAME">/etc/e-smith/sql/loggerdemo-create-schema.sql</tt> templates (because it is part of the RPM), and the post-installation actions will expand the template and run the <tt class="FILENAME">mysql.init</tt> script, which will execute the schema creation commands and delete the generated file. When the RPM installation is finished, the database schema will have been created, and the MySQL database will be ready to process SQL commands from your application.
 
Installing this RPM will create the <tt class="FILENAME">/etc/e-smith/sql/loggerdemo-create-schema.sql</tt> templates (because it is part of the RPM), and the post-installation actions will expand the template and run the <tt class="FILENAME">mysql.init</tt> script, which will execute the schema creation commands and delete the generated file. When the RPM installation is finished, the database schema will have been created, and the MySQL database will be ready to process SQL commands from your application.

Navigation menu