install.sh 654 B

123456789101112131415161718192021
  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. # create test user
  12. cd "$SCRIPTPATH/../../../../../"
  13. OC_PASS=user01 php occ user:add --password-from-env user01
  14. php occ dav:create-calendar user01 calendar
  15. php occ dav:create-calendar user01 shared
  16. OC_PASS=user02 php occ user:add --password-from-env user02
  17. php occ dav:create-calendar user02 calendar
  18. cd "$SCRIPTPATH/../../../../../"