Code Repositories xandikos / c5717e1
Create principals explicitly. Jelmer Vernooń≥ 3 years ago
1 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
3131 mkcol "$p" "addressbook"
3232 }
3333
34 function mkprincipal() {
35 p="$1"
36 mkcol "$p" "principal"
37 }
38
3439 mkcol addressbooks
3540 mkcol addressbooks/__uids__
3641 for I in `seq 1 40`; do
37 mkcol "addressbooks/__uids__/user$(printf %02d $I)"
42 mkprincipal "addressbooks/__uids__/user$(printf %02d $I)"
3843 mkaddressbook addressbooks/__uids__/user$(printf %02d $I)/addressbook
3944 done
4045 mkcol calendars
4146 mkcol calendars/__uids__
4247 mkcalendar calendars/users
4348 for I in `seq 1 40`; do
44 mkcol "calendars/__uids__/user$(printf %02d $I)"
49 mkprincipal "calendars/__uids__/user$(printf %02d $I)"
4550 mkcalendar calendars/__uids__/user$(printf %02d $I)/calendar
4651 mkcalendar calendars/__uids__/user$(printf %02d $I)/tasks
4752 mkcalendar calendars/__uids__/user$(printf %02d $I)/inbox
4853 mkcalendar calendars/__uids__/user$(printf %02d $I)/outbox
4954 done
50 mkcol calendars/__uids__/i18nuser
55 mkprincipal calendars/__uids__/i18nuser
5156 mkcalendar calendars/__uids__/i18nuser/calendar
5257 mkcol principals
5358 mkcol principals/__uids__
54 mkcol principals/__uids__/user01/
59 mkprincipal principals/__uids__/user01/
5560 mkcol principals/users
56 mkcol principals/users/user01
61 mkprincipal principals/users/user01
5762
5863 run_xandikos --defaults
5964