Permalink
Browse files

Missed a couple spaces in my call() routines, broke my script.

  • Loading branch information...
1 parent f779bc6 commit ab56ebb0abbce13a61ef271c903526993b6c98e7 @mattdeboard committed May 8, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 srchupdate.py
View
@@ -14,16 +14,12 @@ def update():
datefmt='%m/%d/%Y %H:%M:%S')
logging.info('Starting index update.')
try:
- mattwhoosh = subprocess.call(['sudo', 'chown',
+ mattwhoosh = subprocess.call(['sudo', 'chown', '-R',
'matt:matt', whoosh_dir])
- mattwhooshfiles = subprocess.call(['sudo', 'chown',
- 'matt:matt', whoosh_dir+'*'])
update_index = subprocess.call([domain_dir+'bin/python',
appdir+'manage.py', 'update_index'])
- apachewhsh = subprocess.call(['sudo', 'chown',
+ apachewhsh = subprocess.call(['sudo', 'chown', '-R',
'www-data:www-data', whoosh_dir])
- apachewhsh2 = subprocess.call(['sudo', 'chown',
- 'www-data:www-data', whoosh_dir+'*'])
apachereload = subprocess.call(['sudo',
'/etc/init.d/apache2', 'force-reload'])
if sum(mattwhoosh, mattwhooshfiles, update_index, apachewhsh,

0 comments on commit ab56ebb

Please sign in to comment.