Name => 'Blank', # loc
Description => 'A blank template', # loc
Content => '', },
- { Queue => '0',
- Name => 'Autoreply', # loc
- Description => 'Default Autoresponse template', # loc
- Content => 'Subject: AutoReply: {$Ticket->Subject}
-
-Hello,
-
-Thank you very much for reporting this.
-
-This message was automatically generated in response to the
-creation of a trouble ticket regarding:
-
- "{$Ticket->Subject()}"
-
-There is no need to reply to this message right now. Your ticket has been
-assigned an ID of [{$rtname} #{$Ticket->id()}].
-
-Please include the string:
-
- [{$rtname} #{$Ticket->id}]
-
-in the subject line of all future correspondence about this issue. To do so,
-you may reply to this message.
-
-Thank you,
-{$Ticket->QueueObj->CorrespondAddress()}
-{$Ticket->AddCustomFieldValue(Field => 'Problem Category', Value => 'Trivial');}
-
--------------------------------------------------------------------------
-{$Transaction->Content()}
-'
- },
{ Queue => '0',
Name => 'Transaction', # loc
Description => 'Message with the recipients in the header', # loc
Content => 'RT-Attach-Message: yes
-Email Recipients (see http://PLC_RT_HOSTNAME/rt3/Ticket/Display.html?id={$Ticket->id})
+Email Recipients (see http://PLC_RT_HOSTNAME/rt3/Ticket/Display.html?id={$Ticket->id} )
Owner: {$Ticket->OwnerObj->Name}
Requestor: {$Ticket->RequestorAddresses}
{ if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } }
Description => 'Create with CC in body', # loc
Content => 'RT-Attach-Message: yes
-Email Recipients (see http://PLC_RT_HOSTNAME/rt3/Ticket/Display.html?id={$Ticket->id})
+Email Recipients (see http://PLC_RT_HOSTNAME/rt3/Ticket/Display.html?id={$Ticket->id} )
Owner: {$Ticket->OwnerObj->Name}
Requestor: {$Ticket->RequestorAddresses}
{ if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } }
{ ScripCondition => 'On Resolve',
ScripAction => 'Notify Requestors',
Template => 'Resolved' },
- #On Create Autoreply To Requestors with template Autoreply
- #On Correspond Notify Requestors, Ccs and AdminCcs with template correspondance with CC
- #On Create Notify AdminCcs with template Create with CC in body
{ ScripCondition => 'On Create',
ScripAction => 'Notify AdminCcs',
{ UserId => 'root', # - principalid
Right => 'SuperUser', },
+
);
# copy to live configuration
cp -f $tmp_siteconfig /etc/rt3/RT_SiteConfig.pm
cp -f $tmp_initialdata /etc/rt3/initialdata
+ chmod 644 /etc/rt3/RT_SiteConfig.pm
+ chmod 644 /etc/rt3/initialdata
rm -f $tmp_siteconfig
rm -f $tmp_initialdata
if ! grep -q "$PATTERN" $CONF ; then
#### SETUP ACCESS from postgres user to run init for the first time.
echo "$PATTERN" >> $CONF
+ WROTE_PG_CONFIG="true"
fi
}
{
if [ ! -f /etc/rt3/setup.finished ] ; then
/usr/sbin/rt-setup-database --action init --dba postgres
+ for f in $MONITORPATH/rt3/rtinit.d/*.pl ; do
+ /usr/sbin/rt-setup-database --action insert --dba postgres --datafile $f
+ done
touch /etc/rt3/setup.finished
###Last DB adjustments
rm -f /etc/rt3/setup.finished
sed -i -e "s/Port=smtp, Name=MTA/Port=smtp,Addr=127.0.0.1, Name=MTA/g" /etc/mail/sendmail.mc
+ service plc start httpd
result "$MESSAGE"
;;
--- /dev/null
+
+@ACL = (
+ { GroupDomain => 'SystemInternal',
+ GroupType => 'Everyone',
+ Right => 'CreateTicket', },
+
+ { GroupDomain => 'SystemInternal',
+ GroupType => 'Everyone',
+ Right => 'ReplyToTicket', },
+
+ { GroupDomain => 'RT::System-Role',
+ GroupType => 'AdminCc',
+ Right => 'WatchAsAdminCc', },
+
+ { GroupDomain => 'RT::System-Role',
+ GroupType => 'Cc',
+ Right => 'ReplyToTicket', },
+
+ { GroupDomain => 'RT::System-Role',
+ GroupType => 'Cc',
+ Right => 'Watch', },
+
+ { GroupDomain => 'RT::System-Role',
+ GroupType => 'Owner',
+ Right => 'ReplyToTicket', },
+
+ { GroupDomain => 'RT::System-Role',
+ GroupType => 'Owner',
+ Right => 'ModifyTicket', },
+)
+@Templates = (
+ { Queue => '0',
+ Name => 'Autoreply', # loc
+ Description => 'Default Autoresponse template', # loc
+ Content => 'Subject: AutoReply: {$Ticket->Subject}
+
+Hello,
+
+Thank you very much for reporting this.
+
+This message was automatically generated in response to the
+creation of a trouble ticket regarding:
+
+ "{$Ticket->Subject()}"
+
+There is no need to reply to this message right now. Your ticket has been
+assigned an ID of [{$rtname} #{$Ticket->id()}].
+
+Please include the string:
+
+ [{$rtname} #{$Ticket->id}]
+
+in the subject line of all future correspondence about this issue. To do so,
+you may reply to this message.
+
+Thank you,
+{$Ticket->QueueObj->CorrespondAddress()}
+
+-------------------------------------------------------------------------
+{$Transaction->Content()}
+'
+ },
+)