mail/postfix: migrate to NAME_setup use

PR: https://github.com/opnsense/core/issues/5917
This commit is contained in:
Franco Fichtner
2022-08-18 14:17:59 +02:00
parent d373e6aada
commit 41df3865e6
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= postfix
PLUGIN_VERSION= 1.23
PLUGIN_REVISION= 2
PLUGIN_REVISION= 3
PLUGIN_COMMENT= SMTP mail relay
PLUGIN_DEPENDS= postfix35
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -1,24 +1,24 @@
[start]
command:/usr/local/opnsense/scripts/OPNsense/Postfix/setup.sh;/usr/local/etc/rc.d/postfix start
command:/usr/local/etc/rc.d/postfix start
parameters:
type:script
message:starting Postfix
[stop]
command:/usr/local/etc/rc.d/postfix stop; exit 0
command:/usr/local/etc/rc.d/postfix stop
parameters:
type:script
message:stopping Postfix
[restart]
command:/usr/local/opnsense/scripts/OPNsense/Postfix/setup.sh;/usr/local/etc/rc.d/postfix restart
command:/usr/local/etc/rc.d/postfix restart
parameters:
type:script
message:restarting Postfix
description:Restart Postfix service
[status]
command:/usr/local/etc/rc.d/postfix status;exit 0
command:/usr/local/etc/rc.d/postfix status; exit 0
parameters:
type:script_output
message:request Postfix status
@@ -1,5 +1,5 @@
{% if helpers.exists('OPNsense.postfix.general.enabled') and OPNsense.postfix.general.enabled == '1' %}
postfix_var_script="/usr/local/opnsense/scripts/OPNsense/Postfix/setup.sh"
postfix_setup="/usr/local/opnsense/scripts/OPNsense/Postfix/setup.sh"
postfix_enable="YES"
{% else %}
postfix_enable="NO"