1
0

install.sh 956 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. #
  3. # SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  4. # SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. # SPDX-License-Identifier: AGPL-3.0-only
  6. #
  7. SCRIPT=`realpath $0`
  8. SCRIPTPATH=`dirname $SCRIPT`
  9. cd "$SCRIPTPATH"
  10. if [ ! -f CalDAVTester/testcaldav.py ]; then
  11. git clone https://github.com/apple/ccs-caldavtester.git CalDAVTester
  12. fi
  13. if [ ! -f pycalendar/setup.py ]; then
  14. git clone https://github.com/apple/ccs-pycalendar.git pycalendar
  15. fi
  16. cd "$SCRIPTPATH/../../../../../"
  17. # disable the trashbin, so recurrent deletion of the same object works
  18. php occ config:app:set dav calendarRetentionObligation --value=0
  19. # create test user
  20. OC_PASS=user01 php occ user:add --password-from-env user01
  21. php occ dav:create-calendar user01 calendar
  22. php occ dav:create-calendar user01 shared
  23. OC_PASS=user02 php occ user:add --password-from-env user02
  24. php occ dav:create-calendar user02 calendar
  25. cd "$SCRIPTPATH/../../../../../"