mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-29 14:43:38 +00:00
Fixed bug with service AUTO_START for pfsense/opnsense, where execute permission was missing from startup script
This commit is contained in:
@@ -2172,6 +2172,7 @@ function serviceManager()
|
||||
{
|
||||
// pfSense requries scripts in rc.d to end with .sh, unlike other *bsd, for AUTO_START to work
|
||||
require('fs').copyFileSync('/usr/local/etc/rc.d/' + options.name, '/usr/local/etc/rc.d/' + options.name + '.sh');
|
||||
require('fs').chmodSync('/usr/local/etc/rc.d/' + options.name, '/usr/local/etc/rc.d/' + options.name + '.sh', m);
|
||||
}
|
||||
|
||||
// pfSense and OPNsense needs to have rc.conf.local override enable, for AUTO_START to work correctly, unlike other *BSD
|
||||
|
||||
Reference in New Issue
Block a user