From c3c6171f965ba9914d37fe1b38fab96e3a8c97da Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Thu, 19 Jan 2023 17:30:18 +0100 Subject: [PATCH] modules, not models --- global/post-tasks.d/010cosmos-modules | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/global/post-tasks.d/010cosmos-modules b/global/post-tasks.d/010cosmos-modules index f099a86..af11696 100755 --- a/global/post-tasks.d/010cosmos-modules +++ b/global/post-tasks.d/010cosmos-modules @@ -5,7 +5,7 @@ # The content of that file is chosen according to: # # 1. If the file is actually present in the model, use that. -# 2. If there is a script called /etc/puppet/setup_cosmos_models, run that. +# 2. If there is a script called /etc/puppet/setup_cosmos_modules, run that. # 3. If the file still doesn't exist, create it with the defaults in this script. # @@ -17,10 +17,10 @@ if [ -f "${COSMOS_MODEL}/overlay/etc/puppet/cosmos-modules.conf" ]; then exit 0 fi -if [ -x /etc/puppet/setup_cosmos_models ]; then +if [ -x /etc/puppet/setup_cosmos_modules ]; then test "$COSMOS_VERBOSE" = "y" && \ - echo "$0: Updating /etc/puppet/cosmos-modules.conf with /etc/puppet/setup_cosmos_models" - /etc/puppet/setup_cosmos_models + echo "$0: Updating /etc/puppet/cosmos-modules.conf with /etc/puppet/setup_cosmos_modules" + /etc/puppet/setup_cosmos_modules test -f /etc/puppet/cosmos-modules.conf && exit 0 fi