diff options
author | Soren Hansen <soren@canonical.com> | 2009-08-10 21:34:47 +0200 |
---|---|---|
committer | Soren Hansen <soren@canonical.com> | 2009-08-10 21:34:47 +0200 |
commit | 1f33a10388e1ac4079d17e9b836dfb4ab7730fec (patch) | |
tree | 4260d5f37c0c3b45eba8728d48f86dbe40965461 | |
parent | 1cac841c3365f31a6021a63407f2001cfc69c04d (diff) | |
download | vyos-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-x | debian/rules | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | ec2-init (renamed from debian/init) | 0 | ||||
-rwxr-xr-x | setup.py | 3 |
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 @@ -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'])], ) |