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

reviewable/pr18780/r1
Tyler 11 years ago
parent c073438d40
commit 5ce664b499

@ -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…
Cancel
Save