mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
mail/postfix: migrate to NAME_setup use
PR: https://github.com/opnsense/core/issues/5917
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user