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], ]