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