creategroup.in 624 B

1234567891011121314151617181920
  1. #! /bin/sh
  2. # Script that is executed whenever a new group is created in the
  3. # external user source, such as an Active Directory tree or
  4. # /etc/passwd.
  5. # This script executes all scripts in @USERSCRIPTDIR@/creategroup.d
  6. # using find. The environment variable KOPANO_GROUP is set, but
  7. # beware that this string can contain any characters, so take heed to
  8. # correct quoting.
  9. if [ -f @sysconfdir@/sysconfig/kopano ]; then
  10. . @sysconfdir@/sysconfig/kopano
  11. elif [ -f @sysconfdir@/default/kopano ]; then
  12. . @sysconfdir@/default/kopano
  13. fi
  14. KOPANO_GROUP_SCRIPTS=@USERSCRIPTDIR@/creategroup.d
  15. . @USERSCRIPTDIR@/groups_common.sh