Changes

From SME Server
Jump to navigationJump to search
Line 136: Line 136:  
  templates2events("/etc/rsyncd.conf", "remoteaccess-update");
 
  templates2events("/etc/rsyncd.conf", "remoteaccess-update");
   −
==== Example : denyhost ====
+
==== Example : smeserver-denyhost ====
    
  #!/usr/bin/perl -w
 
  #!/usr/bin/perl -w
Line 155: Line 155:  
   
 
   
 
  exit 0;
 
  exit 0;
 +
 +
==== Example : smeserver-roundcube ====
 +
 +
#!/usr/bin/perl -w
 +
 +
use esmith::Build::CreateLinks qw(:all);
 +
 +
for my $event (qw(
 +
    bootstrap-console-save
 +
    conf-roundcube
 +
    post-upgrade
 +
    ))
 +
{
 +
    templates2events("/opt/roundcube/config/db.inc.php", $event);
 +
    templates2events("/opt/roundcube/config/main.inc.php", $event);
 +
    templates2events("/etc/e-smith/sql/init/80roundcube", $event);
 +
}
 +
 +
for  my $event (qw(
 +
    conf-roundcube
 +
    ))
 +
{
 +
    templates2events("/etc/httpd/conf/httpd.conf", $event);
 +
    safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init");;
 +
    safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
 +
}
    
[[Category:SME Server Development Framework]]
 
[[Category:SME Server Development Framework]]
 
[[Category:Development Tools]]
 
[[Category:Development Tools]]
 
[[Category:SME9-Development]]
 
[[Category:SME9-Development]]

Navigation menu