keep /usr/local/etc/rc.conf for backwards compatibility

This commit is contained in:
Tyler 2014-01-08 14:38:49 -05:00
parent c073438d40
commit 5ce664b499

View file

@ -784,7 +784,7 @@ class FreeBsdService(Service):
else:
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:
if os.path.isfile(rcfile):
self.rcconf_file = rcfile