3 # Usage: generate-folderinfo-sql-for-users user1 [user2] [user3] [...]
11 TIMEZONE="Canada/Eastern"
14 while [ "$1" != "" ]; do
16 USER_TABLE=`echo $USER_ID | tr -s [:punct:] _`
19 -- (C) 2004 SKYRIX Software AG
22 -- add a unique constraints on path
24 DELETE FROM SOGo_folder_info WHERE c_path2 = '${USER_ID}';
26 INSERT INTO SOGo_folder_info
27 ( c_path, c_path1, c_path2, c_path3, c_path4, c_foldername,
28 c_location, c_quick_location, c_folder_type )
30 ( '/Users/${USER_ID}',
36 'http://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}/SOGo_user_folder',
37 'http://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}/SOGo_user_folder_quick',
40 INSERT INTO SOGo_folder_info
41 ( c_path, c_path1, c_path2, c_path3, c_path4, c_foldername,
42 c_location, c_quick_location, c_folder_type )
44 ( '/Users/${USER_ID}/Calendar',
50 'http://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}/SOGo_${USER_TABLE}_privcal',
51 'http://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}/SOGo_${USER_TABLE}_privcal_quick',
54 INSERT INTO SOGo_folder_info
55 ( c_path, c_path1, c_path2, c_path3, c_path4, c_foldername,
56 c_location, c_quick_location, c_folder_type )
58 ( '/Users/${USER_ID}/Contacts/personal',
64 'http://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}/SOGo_${USER_TABLE}_contacts',
65 'http://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}/SOGo_${USER_TABLE}_contacts_quick',