Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c584925
commit 865234b
Showing
4 changed files
with
91 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
INSERT INTO addressbooks (id, principaluri, displayname, uri, description, synctoken) VALUES(1,'principals/citest','Default Address Book','default','Default Address Book for citest',1); | ||
INSERT INTO calendars (id,synctoken,components) VALUES(1,1,'VEVENT,VTODO'); | ||
INSERT INTO calendarinstances (id,calendarid,principaluri,displayname,uri,description,calendarorder,calendarcolor,timezone) VALUES(1,1,'principals/citest','Default calendar','default','Default calendar',0,'','Europe/Berlin'); | ||
INSERT INTO principals (id,uri,email,displayname) VALUES(1,'principals/citest','citest@example.com','citest'); | ||
INSERT INTO users (id,username,digesta1) VALUES(1,'citest','583d4a8e7edca58122952a093ed573d7'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
BAIKALURL=http://localhost:8080 | ||
|
||
# Web Setup | ||
curl -v -X POST \ | ||
-d 'Baikal_Model_Config_Standard::submitted=1' \ | ||
-d 'refreshed=0' \ | ||
-d 'data[timezone]=Europe/Berlin' \ | ||
-d 'witness[timezone]=1' \ | ||
-d 'data[card_enabled]=1' \ | ||
-d 'witness[card_enabled]=1' \ | ||
-d 'witness[cal_enabled]=1' \ | ||
-d 'data[invite_from]=noreply@localhost' \ | ||
-d 'witness[invite_from]=1' \ | ||
-d 'data[dav_auth_type]=Digest' \ | ||
-d 'witness[dav_auth_type]=1' \ | ||
-d 'data[admin_passwordhash]=admin' \ | ||
-d 'witness[admin_passwordhash]=1' \ | ||
-d 'data[admin_passwordhash_confirm]=admin' \ | ||
-d 'witness[admin_passwordhash_confirm]=1' \ | ||
$BAIKALURL/admin/install/ | ||
|
||
|
||
curl -v -X POST \ | ||
-d 'Baikal_Model_Config_Database::submitted=1' \ | ||
-d 'refreshed=0' \ | ||
-d 'data[sqlite_file]=/var/www/baikal/Specific/db/db.sqlite' \ | ||
-d 'witness[sqlite_file]=1' \ | ||
-d 'witness[mysql]=1' \ | ||
$BAIKALURL/admin/install/ | ||
|
||
# Add test user and addressbook to database | ||
docker exec baikal sh -c 'apt-get update && apt-get install -y sqlite3' | ||
cat .github/configs/baikal/initdb.sql | docker exec -i baikal sqlite3 /var/www/baikal/Specific/db/db.sqlite | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters