1
0
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:
Bryan Roe
2021-01-25 22:15:57 -08:00
parent bc4c8aa41b
commit 2c4b12fddf
2 changed files with 4 additions and 3 deletions

View File

@@ -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