Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | In "fossil server --create", don't create "admin" user with "admin" password, but print the random-generated password |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
2ec9af63bdf19f75e0da164cd48ca53a |
| User & Date: | jan.nijtmans 2015-03-20 11:12:12.270 |
Context
|
2015-03-20
| ||
| 14:50 | Explicitely specify "admin" as username, otherwise Docker cannot find out which user should be created check-in: 5811ecd7cc user: jan.nijtmans tags: trunk | |
| 11:12 | In "fossil server --create", don't create "admin" user with "admin" password, but print the random-generated password check-in: 2ec9af63bd user: jan.nijtmans tags: trunk | |
| 05:20 | Remove inaccurate statement regarding use of servercode, which is now primarily historical. check-in: e315ec8410 user: andybradford tags: trunk | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 |
const char *zRepo = g.argv[arg];
int isDir = file_isdir(zRepo);
if( isDir==1 ){
g.zRepositoryName = mprintf("%s", zRepo);
file_simplify_name(g.zRepositoryName, -1, 0);
}else{
if( isDir==0 && fCreate ){
db_create_repository(zRepo);
db_open_repository(zRepo);
db_begin_transaction();
| > | < > > > > > | 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 |
const char *zRepo = g.argv[arg];
int isDir = file_isdir(zRepo);
if( isDir==1 ){
g.zRepositoryName = mprintf("%s", zRepo);
file_simplify_name(g.zRepositoryName, -1, 0);
}else{
if( isDir==0 && fCreate ){
const char *zPassword;
db_create_repository(zRepo);
db_open_repository(zRepo);
db_begin_transaction();
db_initial_setup(0,"now",0);
db_end_transaction(0);
fossil_print("project-id: %s\n", db_get("project-code", 0));
fossil_print("server-id: %s\n", db_get("server-code", 0));
zPassword = db_text(0, "SELECT pw FROM user WHERE login=%Q", g.zLogin);
fossil_print("admin-user: %s (initial password is \"%s\")\n",
g.zLogin, zPassword);
cache_initialize();
g.zLogin = 0;
g.userUid = 0;
}else{
db_open_repository(zRepo);
}
}
|
| ︙ | ︙ |