createcompany.in 678 B

123456789101112131415161718192021
  1. #! /bin/sh
  2. # Script that is executed whenever a new company 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@/createcompany.d
  6. # using find. The environment variable KOPANO_COMPANY 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. # Used on Debian in place of sysconfig
  13. . @sysconfdir@/default/kopano
  14. fi
  15. KOPANO_COMPANY_SCRIPTS=@USERSCRIPTDIR@/createcompany.d
  16. . @USERSCRIPTDIR@/companies_common.sh