forked from 0x2620/pandora
avoid documentfind rebuild before document db migration
This commit is contained in:
parent
50f6c33159
commit
2cd3653def
1 changed files with 1 additions and 3 deletions
|
@ -208,7 +208,7 @@ if __name__ == "__main__":
|
||||||
if old <= 5443:
|
if old <= 5443:
|
||||||
gunicorn_config = 'pandora/gunicorn_config.py'
|
gunicorn_config = 'pandora/gunicorn_config.py'
|
||||||
if not os.path.exists(gunicorn_config):
|
if not os.path.exists(gunicorn_config):
|
||||||
shutil.copy('%s.in'%gunicorn_config, gunicorn_config)
|
shutil.copy('%s.in' % gunicorn_config, gunicorn_config)
|
||||||
if os.path.exists('/etc/init/pandora.conf'):
|
if os.path.exists('/etc/init/pandora.conf'):
|
||||||
with open('/etc/init/pandora.conf') as fd:
|
with open('/etc/init/pandora.conf') as fd:
|
||||||
data = fd.read()
|
data = fd.read()
|
||||||
|
@ -220,8 +220,6 @@ if __name__ == "__main__":
|
||||||
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
||||||
update_service('pandora-encoding')
|
update_service('pandora-encoding')
|
||||||
update_service('pandora-tasks')
|
update_service('pandora-tasks')
|
||||||
if old <= 5673:
|
|
||||||
run('./pandora/manage.py', 'rebuild_documentfind')
|
|
||||||
else:
|
else:
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
release = get_release()
|
release = get_release()
|
||||||
|
|
Loading…
Reference in a new issue