1
0

install.sh 624 B

1234567891011121314151617181920
  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-addressbook user01 addressbook
  15. OC_PASS=user02 php occ user:add --password-from-env user02
  16. php occ dav:create-addressbook user02 addressbook
  17. cd "$SCRIPTPATH/../../../../../"