diff options
| author | Scott Moser <smoser@ubuntu.com> | 2011-01-19 16:11:55 -0500 |
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2011-01-19 16:11:55 -0500 |
| commit | 7a187863644c0a5baf2c72c3029621677cbb56c6 (patch) | |
| tree | 9789fc61a6af27cb3d3d7c6da64193767fccb1d7 /cloudinit/CloudConfig/cc_runcmd.py | |
| parent | 738766778c88bcfe692f8df17f91c4d5c6c90cdd (diff) | |
| parent | f2cb6fa249c0f9a17aa8efd27749860622fd8ae1 (diff) | |
| download | vyos-cloud-init-7a187863644c0a5baf2c72c3029621677cbb56c6.tar.gz vyos-cloud-init-7a187863644c0a5baf2c72c3029621677cbb56c6.zip | |
pull in the rework of /var/lib/cloud.
- /var/lib/cloud is redesigned, and its layout now described in
doc/var-lib-cloud.txt.
The big plus point of this was to get instance specific data
into /var/lib/cloud/instances, so that data could easily be purged.
A symlink /var/lib/cloud/instance -> /var/lib/cloud/instances/<current_id>
is maintained.
- Also, now run scripts in /var/lib/cloud/scripts/
per-once
per-boot
per-instance
- bugs addressed:
- LP: #704509
Diffstat (limited to 'cloudinit/CloudConfig/cc_runcmd.py')
| -rw-r--r-- | cloudinit/CloudConfig/cc_runcmd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_runcmd.py b/cloudinit/CloudConfig/cc_runcmd.py index 969f6394..afa7a441 100644 --- a/cloudinit/CloudConfig/cc_runcmd.py +++ b/cloudinit/CloudConfig/cc_runcmd.py @@ -21,8 +21,7 @@ import cloudinit.util as util def handle(name,cfg,cloud,log,args): if not cfg.has_key("runcmd"): return - outfile="%s/%s/runcmd" % \ - (cloudinit.user_scripts_dir, cloud.get_instance_id()) + outfile="%s/runcmd" % cloud.get_ipath('scripts') content="#!/bin/sh\n" escaped="%s%s%s%s" % ( "'", '\\', "'", "'" ) |
