Skip to content

Commit

Permalink
Added a stderr to subprocess.call for update_index in srchupdate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdeboard committed May 8, 2011
1 parent bea6ea6 commit ad54546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srchupdate.py
Expand Up @@ -16,10 +16,10 @@ def update():
with open('/a/mattdeboard.net/src/index.log') as f:
try:
mattwhoosh = subprocess.call(['sudo', 'chown', '-R',
'matt:matt', whoosh_dir], stderr=f)
'matt:matt', whoosh_dir])
update_index = subprocess.call([domain_dir+'bin/python',
appdir+'manage.py', 'update_index'],
stdout=f)
stderr=f)
apachewhsh = subprocess.call(['sudo', 'chown', '-R',
'www-data:www-data', whoosh_dir])
apachereload = subprocess.call(['sudo',
Expand Down

0 comments on commit ad54546

Please sign in to comment.