Use expire-autoreply for SOGo 2 instead of update-autoreply

tags/ipasserelle-groupware-0.2.37-1 0.2.34_el6
Daniel Berteaud 8 years ago
parent 1ed7ed509a
commit 2dc55fdd13
  1. 6
      root/etc/e-smith/templates/etc/cron.d/sogo/autoreply

@ -1 +1,5 @@
0 0 * * * sogo /usr/sbin/sogo-tool update-autoreply -p /etc/sogo/sieve.creds
{
my $version = qx(/bin/rpm -q --qf "%{version}" sogo-tool);
my $cmd = ($version =~ m/^2/) ? 'expire-autoreply' : 'update-autoreply';
$OUT = "0 0 * * * sogo /usr/sbin/sogo-tool $cmd -p /etc/sogo/sieve.creds";
}

Loading…
Cancel
Save