- upgrade script: don't stop/start project if --web_only

svn path=/trunk/boinc/; revision=16553
This commit is contained in:
David Anderson 2008-11-24 23:16:40 +00:00
parent fbd50f4ec4
commit ed924f90a1
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -52,7 +52,8 @@ 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')):
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."