mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
keep /usr/local/etc/rc.conf for backwards compatibility
This commit is contained in:
parent
1a655b2dd7
commit
2f813f7660
1 changed files with 1 additions and 1 deletions
|
@ -784,7 +784,7 @@ class FreeBsdService(Service):
|
||||||
else:
|
else:
|
||||||
self.rcconf_value = "NO"
|
self.rcconf_value = "NO"
|
||||||
|
|
||||||
rcfiles = [ '/etc/rc.conf','/etc/rc.conf.local' ] # prefer /etc/rc.conf.local if it exists
|
rcfiles = [ '/etc/rc.conf','/etc/rc.conf.local', '/usr/local/etc/rc.conf' ]
|
||||||
for rcfile in rcfiles:
|
for rcfile in rcfiles:
|
||||||
if os.path.isfile(rcfile):
|
if os.path.isfile(rcfile):
|
||||||
self.rcconf_file = rcfile
|
self.rcconf_file = rcfile
|
||||||
|
|
Loading…
Reference in a new issue