From 597575c6816d367dcfaaed0f65215340d073ad8c Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Thu, 7 Mar 2013 14:17:41 -0800 Subject: [PATCH] Fix issues causing Fedora images to fail For os-refresh-config and os-config-applier, support systemd or upstart. Change-Id: I4ff12e891a85b3171a6ef0c6898b2d45a1699de1 --- .../install.d/10-os-config-applier | 20 ++++++++++++++++++- .../install.d/01-os-refresh-config | 20 ++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/elements/os-config-applier/install.d/10-os-config-applier b/elements/os-config-applier/install.d/10-os-config-applier index ca4446eb..1fe4347c 100755 --- a/elements/os-config-applier/install.d/10-os-config-applier +++ b/elements/os-config-applier/install.d/10-os-config-applier @@ -7,8 +7,26 @@ pip install -U git+https://github.com/tripleo/os-config-applier.git TEMPLATE_ROOT=$(os-config-applier --print-templates) mkdir -p $TEMPLATE_ROOT -cat > /etc/init/os-config-applier.conf <<- eof +# Upstart +if [ -d /etc/init ] ; then + cat > /etc/init/os-config-applier.conf < /etc/systemd/system/os-config-applier.service < /etc/init/os-refresh-config.conf <<- eof +# Upstart +if [ -d /etc/init ] ; then + cat > /etc/init/os-refresh-config.conf < /etc/systemd/system/os-refresh-config.service <