Skip to content

Commit

Permalink
Flush the cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
dak180 committed Jul 18, 2023
1 parent ae88b1f commit 736f42e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions update-passwd.tool
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ if [ "${sysadminctlVersionRun}" = "1" ]; then
commands+=(
dsimport
dseditgroup
dsmemberutil
/usr/libexec/PlistBuddy
)
fi
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 736f42e

Please sign in to comment.