diff --git a/elements/os-apply-config/install.d/99-install-config-templates b/elements/os-apply-config/install.d/99-install-config-templates index dd7ab0763..2ed5a08bd 100755 --- a/elements/os-apply-config/install.d/99-install-config-templates +++ b/elements/os-apply-config/install.d/99-install-config-templates @@ -6,6 +6,8 @@ set -eux TEMPLATE_ROOT=$(os-apply-config --print-templates) TEMPLATE_SOURCE=$(dirname $0)/../os-config-applier -rsync --exclude='.*.swp' -Cr $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/ +mkdir -p $TEMPLATE_ROOT + +[ -d $TEMPLATE_SOURCE ] && rsync --exclude='.*.swp' -Cr $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/ TEMPLATE_SOURCE=$(dirname $0)/../os-apply-config -rsync --exclude='.*.swp' -Cr $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/ +[ -d $TEMPLATE_SOURCE ] && rsync --exclude='.*.swp' -Cr $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/ diff --git a/elements/os-apply-config/os-apply-config/.os-config-applier b/elements/os-apply-config/os-apply-config/.os-config-applier deleted file mode 100644 index e69de29bb..000000000 diff --git a/elements/os-apply-config/os-config-applier/.os-config-applier b/elements/os-apply-config/os-config-applier/.os-config-applier deleted file mode 100644 index e69de29bb..000000000