mail/rspamd: migrate to NAME_setup use
PR: https://github.com/opnsense/core/issues/5917
This commit is contained in:
parent
41df3865e6
commit
19daf90ce4
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= rspamd
|
||||
PLUGIN_VERSION= 1.12
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= Protect your network from spam
|
||||
PLUGIN_DEPENDS= rspamd
|
||||
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
[start]
|
||||
command:/usr/local/opnsense/scripts/rspamd/setup.sh;/usr/local/etc/rc.d/rspamd start
|
||||
command:/usr/local/etc/rc.d/rspamd start
|
||||
parameters:
|
||||
type:script
|
||||
message:starting rspamd
|
||||
|
||||
[stop]
|
||||
command:/usr/local/etc/rc.d/rspamd onestop
|
||||
command:/usr/local/etc/rc.d/rspamd stop
|
||||
parameters:
|
||||
type:script
|
||||
message:stopping rspamd
|
||||
|
||||
[restart]
|
||||
command:/usr/local/opnsense/scripts/rspamd/setup.sh;/usr/local/etc/rc.d/rspamd restart
|
||||
command:/usr/local/etc/rc.d/rspamd restart
|
||||
parameters:
|
||||
type:script
|
||||
message:restarting rspamd
|
||||
|
||||
[status]
|
||||
command:/usr/local/etc/rc.d/rspamd status;exit 0
|
||||
command:/usr/local/etc/rc.d/rspamd status; exit 0
|
||||
parameters:
|
||||
type:script_output
|
||||
message:request rspamd status
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% if helpers.exists('OPNsense.Rspamd.general.enabled') and OPNsense.Rspamd.general.enabled == '1' %}
|
||||
rspamd_var_script="/usr/local/opnsense/scripts/rspamd/setup.sh"
|
||||
rspamd_setup="/usr/local/opnsense/scripts/rspamd/setup.sh"
|
||||
rspamd_enable="YES"
|
||||
{% else %}
|
||||
rspamd_enable="NO"
|
||||
|
|
Loading…
Reference in New Issue