diskimage-builder/elements/os-refresh-config/install.d/60-os-refresh-config-hup
Clint Byrum 0841576862 Add cfn-hup configuration for os-refresh-config
Configures cfn-hup to run os-refresh-config on Metadata changes.

Change-Id: I65fcd8e09fe3cb070e3036156eaca4b5b0993d67
2013-02-12 12:21:42 -08:00

9 lines
433 B
Bash
Executable File

#!/bin/bash
# Note that this install.d script must be run after os-config-applier's
# install script so that we can make use of os-config-apply
set -eu
script_home=$(dirname $0)
template_home=$(os-config-applier --print-templates)/etc/cfn
install -o root -g root -m 0644 -D $script_home/cfn-hup.conf $template_home/cfn-hup.conf
install -o root -g root -m 0644 -D $script_home/hooks.conf $template_home/hooks.d/os-refresh-config.conf