From d67120b4b83ac0ce156b8e844496355d262d85af Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 11 Jan 2010 11:29:09 -0500 Subject: make sure all user-scripts get run, and only once-per-instance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 . --- upstart/cloud-run-user-script.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3