install.sh 715 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. #
  3. # SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  4. # SPDX-License-Identifier: AGPL-3.0-only
  5. #
  6. SCRIPT=`realpath $0`
  7. SCRIPTPATH=`dirname $SCRIPT`
  8. cd "$SCRIPTPATH"
  9. if [ ! -f CalDAVTester/testcaldav.py ]; then
  10. git clone https://github.com/apple/ccs-caldavtester.git CalDAVTester
  11. fi
  12. if [ ! -f pycalendar/setup.py ]; then
  13. git clone https://github.com/apple/ccs-pycalendar.git pycalendar
  14. fi
  15. # create test user
  16. cd "$SCRIPTPATH/../../../../../"
  17. OC_PASS=user01 php occ user:add --password-from-env user01
  18. php occ dav:create-addressbook user01 addressbook
  19. OC_PASS=user02 php occ user:add --password-from-env user02
  20. php occ dav:create-addressbook user02 addressbook
  21. cd "$SCRIPTPATH/../../../../../"