diff --git a/tools/add.C b/tools/add.C index b19d6db465..ffbc63de43 100644 --- a/tools/add.C +++ b/tools/add.C @@ -227,7 +227,7 @@ void add_user() { int main(int argc, char** argv) { int i; - db_open("boinc"); + db_open(getenv("BOINC_DB_NAME")); for (i=2; i\n"); continue; } - while (1) { found = false; p = strstr(buf, OUTFILE_MACRO); @@ -105,14 +104,14 @@ int process_result_template( if (p) { found = true; strcpy(temp, p+strlen(UPLOAD_URL_MACRO)); - strcpy(p, UPLOAD_URL); + strcpy(p, getenv("BOINC_UPLOAD_URL")); strcat(p, temp); } p = strstr(buf, DOWNLOAD_URL_MACRO); if (p) { found = true; strcpy(temp, p+strlen(DOWNLOAD_URL_MACRO)); - strcpy(p, DOWNLOAD_URL); + strcpy(p, getenv("BOINC_DOWNLOAD_URL")); strcat(p, temp); } p = strstr(buf, WU_NAME_MACRO);