seafile-admin_virtualenv.patch 599 B

1234567891011121314151617181920
  1. diff --git a/tools/seafile-admin b/tools/seafile-admin
  2. index 102cf9f..ce77c35 100755
  3. --- a/tools/seafile-admin
  4. +++ b/tools/seafile-admin
  5. @@ -1,4 +1,4 @@
  6. -#!/usr/bin/env python
  7. +#!/usr/lib/seafile/seafileenv/bin/python2
  8. # coding: UTF-8
  9. '''This is the helper script to setup/manage your seafile server
  10. @@ -604,7 +604,8 @@ def start_controller():
  11. def start_seahub_gunicorn():
  12. argv = [
  13. - 'gunicorn_django',
  14. + PYTHON,
  15. + '/usr/lib/seafile/seafileenv/bin/gunicorn_django',
  16. '-c', conf[CONF_SEAHUB_CONF],
  17. '-b', '0.0.0.0:%s' % conf[CONF_SEAHUB_PORT],
  18. ]