Update to use otrs.Console.pl for mail queue injection
authorTom Hughes <tom@compton.nu>
Sun, 25 Nov 2018 19:04:26 +0000 (19:04 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 25 Nov 2018 19:06:05 +0000 (19:06 +0000)
Closes #205

roles/otrs.rb

index 6053d8beb24997f7c5795fe76840cf721f70d742..5a994362ab27900ffcce9e5fe347c49a4e07f654 100644 (file)
@@ -19,7 +19,7 @@ default_attributes(
         :comment => "otrs@otrs.openstreetmap.org",
         :domains => ["otrs.openstreetmap.org"],
         :local_parts => ["otrs"],
-        :command => "/opt/otrs/bin/otrs.PostMaster.pl",
+        :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read",
         :user => "otrs",
         :group => "www-data",
         :home_directory => "/opt/otrs"
@@ -28,7 +28,7 @@ default_attributes(
         :comment => "data@otrs.openstreetmap.org",
         :domains => ["otrs.openstreetmap.org"],
         :local_parts => ["data"],
-        :command => "/opt/otrs/bin/otrs.PostMaster.pl -q 'Data Working Group'",
+        :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue='Data Working Group'",
         :user => "otrs",
         :group => "www-data",
         :home_directory => "/opt/otrs"
@@ -37,7 +37,7 @@ default_attributes(
         :comment => "membership@otrs.openstreetmap.org",
         :domains => ["otrs.openstreetmap.org"],
         :local_parts => ["membership"],
-        :command => "/opt/otrs/bin/otrs.PostMaster.pl -q 'Membership Working Group'",
+        :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue='Membership Working Group'",
         :user => "otrs",
         :group => "www-data",
         :home_directory => "/opt/otrs"
@@ -46,7 +46,7 @@ default_attributes(
         :comment => "support@otrs.openstreetmap.org",
         :domains => ["otrs.openstreetmap.org"],
         :local_parts => ["support"],
-        :command => "/opt/otrs/bin/otrs.PostMaster.pl -q 'Technical Support'",
+        :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue='Technical Support'",
         :user => "otrs",
         :group => "www-data",
         :home_directory => "/opt/otrs"