diff options
author | Scott Moser <smoser@nelson> | 2010-01-11 11:29:09 -0500 |
---|---|---|
committer | Scott Moser <smoser@nelson> | 2010-01-11 11:29:09 -0500 |
commit | d67120b4b83ac0ce156b8e844496355d262d85af (patch) | |
tree | 645eb0185639308137366f4dd524b5d5135adb11 /upstart | |
parent | 0c79e64925918a7f78d6e2ba34401367d7cf7c64 (diff) | |
download | vyos-cloud-init-d67120b4b83ac0ce156b8e844496355d262d85af.tar.gz vyos-cloud-init-d67120b4b83ac0ce156b8e844496355d262d85af.zip |
make sure all user-scripts get run, and only once-per-instance
run-parts didn't like scripts ending in .sh apparently.
the man page says:
If neither the --lsbsysinit option nor the --regex option is given
then the names must consist entirely of upper and lower case letters,
digits, under‐ scores, and hyphens.
We dont want to have such a restriction. so run with
--regex '.*'
Second change is making this run once-per-instance .
Diffstat (limited to 'upstart')
-rw-r--r-- | upstart/cloud-run-user-script.conf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/upstart/cloud-run-user-script.conf b/upstart/cloud-run-user-script.conf index 31484d01..e4a60bcb 100644 --- a/upstart/cloud-run-user-script.conf +++ b/upstart/cloud-run-user-script.conf @@ -10,5 +10,6 @@ task script sdir=/var/lib/cloud/data/scripts [ -d "$sdir" ] || exit 0 -exec cloud-init-run-module once_per_ami user-scripts execute run-parts "$sdir" +exec cloud-init-run-module once-per-instance user-scripts execute \ + --regex '.*' run-parts "$sdir" end script |