diff -urN smeserver-roundcube-1.2.old/createlinks smeserver-roundcube-1.2/createlinks --- smeserver-roundcube-1.2.old/createlinks 2015-04-02 01:05:54.000000000 +0100 +++ smeserver-roundcube-1.2/createlinks 2021-04-04 11:04:56.881582351 +0100 @@ -2,8 +2,33 @@ use esmith::Build::CreateLinks qw(:all); +# Koozali event specific for updating with yum without reboot +$event = "smeserver-roundcube-update"; +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event + +foreach my $file (qw( + /etc/systemd/system-preset/49-koozali.preset +)) +{ + templates2events( $file, $event ); +} + +#action needed in case we have a systemd unit +event_link("systemd-default", $event, "10"); +event_link("systemd-reload", $event, "50"); + +#action specific to this package +#event_link("some event", $event, "30"); +#services we need to restart +#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/some service"); +#and Server Manager panel link +#panel_link('somefunction', 'manager'); + + #expand specific roundcube template for my $event (qw( + smeserver-roundcube-update bootstrap-console-save conf-roundcube roundcube-update @@ -18,6 +43,7 @@ #restart specific services to avoid to reboot after the installation for my $event (qw( + smeserver-roundcube-update conf-roundcube roundcube-update )) @@ -33,6 +59,7 @@ #We want to expand /etc/e-smith/templates-user/.qmail foreach my $event (qw( + smeserver-roundcube-update conf-roundcube roundcube-update )) diff -urN smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube --- smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube 2015-04-02 01:05:54.000000000 +0100 +++ smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube 2021-04-04 11:00:27.916378591 +0100 @@ -76,9 +76,13 @@ $OUT .= " require valid-user\n"; $OUT .= " Satisfy $satisfy\n"; } - $OUT .= " AddType application/x-httpd-php .php\n"; - $OUT .= " php_admin_value eaccelerator.enable 1\n"; - $OUT .= "\n"; + $OUT .= " AddType application/x-httpd-php .php\n"; + $version = 74; + $OUT .= "\n"; + $OUT .= "SetHandler \"proxy:unix:/var/run/php-fpm/php$version.sock|fcgi://localhost\"\n"; + $OUT .= "\n"; +# $OUT .= " php_admin_value eaccelerator.enable 1\n"; + $OUT .= "\n"; $OUT .= qq ( diff -urN smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/40SMTP smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/40SMTP --- smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/40SMTP 2015-04-02 01:05:54.000000000 +0100 +++ smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/roundcubemail/config.inc.php/40SMTP 2021-04-04 10:32:17.438168144 +0100 @@ -16,7 +16,7 @@ // SMTP port (default is 25; use 587 for STARTTLS or 465 for the // deprecated SSL over SMTP (aka SMTPS)) - {$OUT .= "\$config['smtp_port'] = $ssmtpd{'TCPPort'};\n";} + {$OUT .= "\$config['smtp_port'] = $qpsmtpd{'TCPPort'};\n";} // SMTP username (if required) if you use %u as the username Roundcube // will use the current username for login