- "upgrade" script: copy sched/fcgi if it exists

svn path=/trunk/boinc/; revision=23357
This commit is contained in:
David Anderson 2011-04-08 19:36:26 +00:00
parent 60fc3d3f22
commit 5b3c9e872b
2 changed files with 10 additions and 0 deletions

View File

@ -2146,3 +2146,9 @@ David 8 Apr 2011
client/
cs_scheduler.cpp
David 8 Apr 2011
- "upgrade" script: copy sched/fcgi if it exists
py/Boinc/
setup_project.py

View File

@ -362,6 +362,10 @@ sys.path.insert(0, os.path.join('%s', 'py'))
if os.path.isfile(dir('cgi-bin', 'cgi')):
os.rename(dir('cgi-bin', 'cgi'), dir('cgi-bin', 'cgi.old'))
if os.path.isfile(dir('cgi-bin', 'fcgi')):
os.rename(dir('cgi-bin', 'fcgi'), dir('cgi-bin', 'fcgi.old'))
map(lambda (s): install(builddir('sched',s), dir('cgi-bin',s)),
[ 'fcgi'])
if os.path.isfile(dir('cgi-bin', 'file_upload_handler')):
os.rename(dir('cgi-bin', 'file_upload_handler'), dir('cgi-bin', 'file_upload_handler.old'))