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

This commit is contained in:
Daniel Berteaud 2017-03-23 13:05:36 +01:00
parent 1ed7ed509a
commit 2dc55fdd13
1 changed files with 5 additions and 1 deletions

View File

@ -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";
}