Differences From:
File
src/db.c
part of check-in
[8dbee6731d]
- The push, pull, and sync commands remember the last server and reuse it
if the URL argument is omitted. Sync via network only now.
by
drh on
2007-07-31 01:34:45.
[view]
To:
File
src/db.c
part of check-in
[a48936e834]
- Changes to the way new repositories are created. Also make the
CGI output blob available to all modules through a function call.
by
drh on
2007-08-03 23:04:05.
[view]
@@ -665,8 +665,9 @@
db_open_config();
db_begin_transaction();
db_set("content-schema", CONTENT_SCHEMA);
db_set("aux-schema", AUX_SCHEMA);
+ db_set_int("localauth", 1);
db_multi_exec(
"INSERT INTO config(name,value) VALUES('server-code', hex(randomblob(20)));"
"INSERT INTO config(name,value) VALUES('project-code',hex(randomblob(20)));"
);
@@ -674,13 +675,19 @@
if( zUser==0 ){
zUser = getenv("USER");
}
if( zUser==0 ){
- zUser = "anonymous";
+ zUser = "root";
}
db_multi_exec(
"INSERT INTO user(login, pw, cap, info)"
"VALUES(%Q,'','s','')", zUser
+ );
+ db_multi_exec(
+ "INSERT INTO user(login,pw,cap,info)"
+ " VALUES('anonymous','anonymous','hjkorw','Anon');"
+ "INSERT INTO user(login,pw,cap,info)"
+ " VALUES('nobody','','jor','Nobody');"
);
user_select();
blob_zero(&manifest);
blob_appendf(&manifest, "C initial\\sempty\\sbaseline\n");