summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarm Weites <harm@weites.com>2014-08-09 08:12:35 +0000
committerHarm Weites <harm@weites.com>2014-08-09 08:12:35 +0000
commit9e10017821eb6f197aebd89545444cdb7bea5056 (patch)
tree5026fb159c35c2884f7d183d3023654a46dac700
parentca1e2e17e5ae4af811826518f46631c9962f8292 (diff)
downloadvyos-cloud-init-9e10017821eb6f197aebd89545444cdb7bea5056.tar.gz
vyos-cloud-init-9e10017821eb6f197aebd89545444cdb7bea5056.zip
fix: To install the new freebsd sysvinit scripts, accept a new
sysvinit_freebsd argument. Specifying sysvinit will install the RH scripts, which is wrong.
-rwxr-xr-xsetup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 556103b9..7b061824 100755
--- a/setup.py
+++ b/setup.py
@@ -63,12 +63,14 @@ def systemd_unitdir():
INITSYS_FILES = {
'sysvinit': [f for f in glob('sysvinit/redhat/*') if is_f(f)],
+ 'sysvinit_freebsd': [f for f in glob('sysvinit/freebsd/*') if is_f(f)],
'sysvinit_deb': [f for f in glob('sysvinit/debian/*') if is_f(f)],
'systemd': [f for f in glob('systemd/*') if is_f(f)],
'upstart': [f for f in glob('upstart/*') if is_f(f)],
}
INITSYS_ROOTS = {
'sysvinit': '/etc/rc.d/init.d',
+ 'sysvinit_freebsd': '/usr/local/etc/rc.d',
'sysvinit_deb': '/etc/init.d',
'systemd': systemd_unitdir(),
'upstart': '/etc/init/',