net/igmp-proxy: use mwexecf and file_safe

PR: https://github.com/opnsense/core/issues/9325
This commit is contained in:
Franco Fichtner 2025-10-28 15:27:51 +01:00
parent 7ceccc441b
commit 3af63008f9
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
PLUGIN_NAME= igmp-proxy
PLUGIN_VERSION= 1.5
PLUGIN_REVISION= 4
PLUGIN_REVISION= 5
PLUGIN_DEPENDS= igmpproxy
PLUGIN_COMMENT= IGMP-Proxy Service
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -109,8 +109,8 @@ EOD;
}
$igmpconf .= "\n";
file_put_contents('/usr/local/etc/igmpproxy.conf', $igmpconf);
mwexec('/usr/local/etc/rc.d/igmpproxy onestart');
file_safe('/usr/local/etc/igmpproxy.conf', $igmpconf);
mwexecf('/usr/local/etc/rc.d/igmpproxy onestart');
service_log("done.\n", $verbose);
}