From 736f42ed0b0021331d7a770d2f32261d1abacfda Mon Sep 17 00:00:00 2001 From: dak180 Date: Mon, 17 Jul 2023 20:41:00 -0400 Subject: [PATCH] Flush the cache. --- Makefile | 2 +- update-passwd.tool | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 93c9a51..cab4870 100644 --- a/Makefile +++ b/Makefile @@ -135,7 +135,7 @@ uninstall: clean: rm -f update-passwd update-passwd.html update-passwd.1 update-passwd.1.gz rm -f update-passwd.sed logo.svg passwd-fink.conf group-fink.conf - rm -f *.tgz *.md5 *.sig + rm -f *.tgz *.md5 *.sig *.sha256 rm -f docbook-xsl.css rm -f README.removing-users.html README.passwd-configs.html README.html rm -f *~ index.html diff --git a/update-passwd.tool b/update-passwd.tool index bd5b23e..7656ba2 100755 --- a/update-passwd.tool +++ b/update-passwd.tool @@ -295,6 +295,7 @@ if [ "${sysadminctlVersionRun}" = "1" ]; then commands+=( dsimport dseditgroup +dsmemberutil /usr/libexec/PlistBuddy ) fi @@ -375,6 +376,7 @@ elif [ "${opMode}" = "user" ]; then : "${gidNumber="$(dscl . -read "/groups/${GROUPNAME}" PrimaryGroupID | cut -d ' ' -f '2')"}" if [ "${sysadminctlVersionRun}" = "1" ]; then dsImport "${SHORTNAME}" "$(uidNumber "${SHORTNAME}")" "${gidNumber}" "${HOME}" "${SHELL}" "${INFO}" + dsmemberutil flushcache else dsclUser "${SHORTNAME}" "$(uidNumber "${SHORTNAME}")" "${gidNumber}" "${HOME}" "${SHELL}" "${INFO}" fi