1
0

install.sh 792 B

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