Changes

From SME Server
Jump to navigationJump to search
Line 70: Line 70:  
Don't use signal-event my-own-event: just give all the commands, or use an existing one, we could use domain-modify
 
Don't use signal-event my-own-event: just give all the commands, or use an existing one, we could use domain-modify
   −
Here's the future createlinks perl script, this is just all we need, I will remove the ones already in place in ''domain-modify'' (i.e. apache should already be expanded+restarted):
+
Stefen
 +
----
 +
Here's the future createlinks perl script:
 
  #!/usr/bin/perl -w
 
  #!/usr/bin/perl -w
 
  use esmith::Build::CreateLinks qw(:all);
 
  use esmith::Build::CreateLinks qw(:all);
Line 78: Line 80:  
  templates2events("/etc/e-smith/sql/init/82glpi_mysql.sql",        qw(domain-modify post-upgrade ));
 
  templates2events("/etc/e-smith/sql/init/82glpi_mysql.sql",        qw(domain-modify post-upgrade ));
 
  templates2events("/etc/e-smith/sql/init/84ocs-glpi.sql",          qw(domain-modify post-upgrade ));
 
  templates2events("/etc/e-smith/sql/init/84ocs-glpi.sql",          qw(domain-modify post-upgrade ));
templates2events("/etc/httpd/conf/httpd.conf",                    qw(domain-modify post-upgrade ));
   
  templates2events("/etc/ocsinventory-agent/ocsinv.conf",            qw(domain-modify post-upgrade ));
 
  templates2events("/etc/ocsinventory-agent/ocsinv.conf",            qw(domain-modify post-upgrade ));
 
  templates2events("/opt/inventory/glpi/config/config_db.php",      qw(domain-modify post-upgrade ));
 
  templates2events("/opt/inventory/glpi/config/config_db.php",      qw(domain-modify post-upgrade ));
 
  templates2events("/opt/inventory/ocs/ocsreports/dbconfig.inc.php", qw(domain-modify post-upgrade ));
 
  templates2events("/opt/inventory/ocs/ocsreports/dbconfig.inc.php", qw(domain-modify post-upgrade ));
 
  # Services to restart
 
  # Services to restart
  safe_symlink("restart", "root/etc/e-smith/events/ocsglpi-update/services2adjust/httpd-e-smith");
+
  safe_symlink("start",           "root/etc/e-smith/events/domain-modify/services2adjust/mysql.init");
  safe_symlink("start",  "root/etc/e-smith/events/ocsglpi-update/services2adjust/mysql.init");
+
Apache is already expanded and restarted by event ''domain-modify'' so I removed these useless lines... Events are also available when calling a ''post-upgrade''. I based this on how SME handles webmail and also what I've found in other SPRMs...
 +
 
 +
 
 +
How I handle SME integration:
 +
  80ocs_mysql.sql  => create/update ocs  database+user+password
 +
82glpi_mysql.sql => create/update glpi database+user+password
 +
84ocs-glpi.sql  => apply ocs' password in glpi database
 +
ocsinv.conf      => apply Agent config
 +
config_db.php    => MySQL DB passwords
 +
dbconfig.inc.php => MySQL DB passwords
 +
{{Warning box|These templates allow to restore the good password when using www/ocs/install.php (used for web interface updates!!!)}}
 +
{{Note box|These templates also ensures that if ocs password changes, it will be updated in glpi MySQL database!!!}}
 +
{{Note box|These templates are working for RPM install, RPM updates and everyday use :-)}}
 +
Cool34000
 +
----
    
==save bandwidth==
 
==save bandwidth==
498

edits

Navigation menu