#!/usr/bin/perl -w # This script creates the symlinks needed by this RPM use esmith::Build::CreateLinks qw(:all); # # Install the Turba tables into mysql and expand the config files # We only need to do this once. # foreach (qw(conf.php prefs.php sources.php attributes.php)) { templates2events("/home/httpd/html/horde/turba/config/$_", qw(email-update bootstrap-console-save)); } foreach (qw(conf.php prefs.php sources.php attributes.php)) { safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/home/httpd/html/horde/turba/config/$_/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/home/httpd/html/horde/turba/config/$_/template-end"); } foreach (qw( 40mysql.create.turba 50turba_upgrade 57turba_mysql_reset_addressbook_pref 60migrate-imp-to-turba )) { templates2events( "/etc/e-smith/sql/init/$_", qw(post-install)); } foreach (qw( 40mysql.create.turba 50turba_upgrade 57turba_mysql_reset_addressbook_pref 60migrate-imp-to-turba )) { templates2events( "/etc/e-smith/sql/init/$_", qw(post-upgrade)); }