From ed924f90a1fa7d95e882fa836dbf8e1faabdace5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 24 Nov 2008 23:16:40 +0000 Subject: [PATCH] - upgrade script: don't stop/start project if --web_only svn path=/trunk/boinc/; revision=16553 --- checkin_notes | 6 ++++++ tools/upgrade | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index e01104b14c..a0896f4282 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9577,3 +9577,9 @@ David 24 Nov 2008 client/ cs_prefs.cpp + +David 24 Nov 2008 + - upgrade script: don't stop/start project if --web_only + + tools/ + upgrade diff --git a/tools/upgrade b/tools/upgrade index 09ec3c5535..42613430d9 100755 --- a/tools/upgrade +++ b/tools/upgrade @@ -52,8 +52,9 @@ INSTALL_DIR = os.path.join(options.project_root, project_shortname) if not tools.query_noyes("Overwrite files in "+INSTALL_DIR): raise SystemExit -if os.system(os.path.join(INSTALL_DIR,'bin/stop')): - raise SystemExit("Couldn't stop project!") +if not options.web_only: + if os.system(os.path.join(INSTALL_DIR,'bin/stop')): + raise SystemExit("Couldn't stop project!") print "Upgrading files... " @@ -71,4 +72,5 @@ except: os.system('cd '+INSTALL_DIR+'/html/ops; ./upgrade_db.php') -print "Run `bin/start' to restart the project." +if not options.web_only: + print "Run `bin/start' to restart the project."