From 5721f6b3c225f141c9548366d145d8d9ca05d034 Mon Sep 17 00:00:00 2001 From: Barry Luong Date: Thu, 11 Jul 2002 20:47:47 +0000 Subject: [PATCH] Changes for database names and upload and download url's svn path=/trunk/boinc/; revision=180 --- tools/add.C | 2 +- tools/backend_lib.C | 4 ++-- tools/create_work.C | 2 +- tools/process_result_template.C | 5 ++--- 4 files changed, 6 insertions(+), 7 deletions(-) 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);