Skip to content

Commit

Permalink
added flush-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmstrat committed May 12, 2023
1 parent ed0529e commit 2d89d6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions domain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Usage:
domain add-user-to-group <user> <group>
domain remove-user-from-group <user> <group>
domain update-ip <domain> <controller> <oldip> <newip>
domain flush-cache
';
}

Expand Down Expand Up @@ -104,6 +105,9 @@ case "${1}" in
samba-tool dns update 127.0.0.1 ${2} ${3} A ${4} ${5} -U administrator
samba-tool dns update 127.0.0.1 ${2} @ A ${4} ${5} -U administrator
;;
flush-cache)
net cache flush
;;
*)
usage;
esac

0 comments on commit 2d89d6d

Please sign in to comment.