summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoren Hansen <soren@canonical.com>2009-08-10 21:34:47 +0200
committerSoren Hansen <soren@canonical.com>2009-08-10 21:34:47 +0200
commit1f33a10388e1ac4079d17e9b836dfb4ab7730fec (patch)
tree4260d5f37c0c3b45eba8728d48f86dbe40965461
parent1cac841c3365f31a6021a63407f2001cfc69c04d (diff)
downloadvyos-cloud-init-1f33a10388e1ac4079d17e9b836dfb4ab7730fec.tar.gz
vyos-cloud-init-1f33a10388e1ac4079d17e9b836dfb4ab7730fec.zip
Move ec2 init script from debian/ out into top-level.
Install init-script using distutils. Add -o to dh_installinit call to let it find the init script.
-rwxr-xr-xdebian/rules1
-rwxr-xr-x[-rw-r--r--]ec2-init (renamed from debian/init)0
-rwxr-xr-xsetup.py3
3 files changed, 3 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index b81e3ff3..bb5f10b4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,7 @@
DEB_PYTHON_SYSTEM=pycentral
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
+DEB_DH_INSTALLINIT_ARGS=-o
DEB_UPDATE_RCD_PARAMS:= start 15 2 3 4 5 . stop 20 1 .
diff --git a/debian/init b/ec2-init
index b2995b79..b2995b79 100644..100755
--- a/debian/init
+++ b/ec2-init
diff --git a/setup.py b/setup.py
index dacdd509..e199eb1b 100755
--- a/setup.py
+++ b/setup.py
@@ -36,5 +36,6 @@ setup(name='EC2-init',
'ec2-set-hostname.py',
'ec2-wait-for-meta-data-service.py'],
data_files=[('/etc/ec2-init', ['debian/ec2-config.cfg']),
- ('/etc/ec2-init/templates', glob('templates/*'))],
+ ('/etc/ec2-init/templates', glob('templates/*')),
+ ('/etc/init.d', ['ec2-init'])],
)