From 50ad65e2bb9909315909cb3f03360e30496c8119 Mon Sep 17 00:00:00 2001 From: Kris Payne Date: Mon, 1 Aug 2016 16:58:38 -0700 Subject: [PATCH] user_template function corrected the variable name for existing user locations --- ElCapitan_CIS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElCapitan_CIS.sh b/ElCapitan_CIS.sh index 3d23708..59e2ab0 100644 --- a/ElCapitan_CIS.sh +++ b/ElCapitan_CIS.sh @@ -980,7 +980,7 @@ user_template() { /usr/sbin/chown "${USER_UID}" "${USER_HOME}"/Library/Preferences fi if [ -d "${USER_HOME}"/Library/Preferences ]; then - /usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/"${PREFERENCE_DOMAIN}" "${PREFERENCE_KEY}" "${PREFERENCE_ACTION_1}" "${PREFERENCE_ACTION_2}" "${PREFERENCE_ACTION_3}" + /usr/bin/defaults write "${USER_HOME}"/Library/Preferences/"${PREFERENCE_DOMAIN}" "${PREFERENCE_KEY}" "${PREFERENCE_ACTION_1}" "${PREFERENCE_ACTION_2}" "${PREFERENCE_ACTION_3}" fi fi done