wrap seafile-server-tools to use python dependencies

- also fix seahub dependencies
This commit is contained in:
Trolli Schmittlauch 2019-10-19 00:16:16 +02:00
parent e54c1770d1
commit fb48e3c568
2 changed files with 39 additions and 13 deletions

View file

@ -0,0 +1,18 @@
diff --git a/tools/seafile-admin b/tools/seafile-admin
index 5e3658b..2fc2c08 100755
--- a/tools/seafile-admin
+++ b/tools/seafile-admin
@@ -518,10 +518,10 @@ def init_seahub():
def check_django_version():
- '''Requires django 1.8'''
+ '''Requires django 1.11 or later'''
import django
- if django.VERSION[0] != 1 or django.VERSION[1] != 8:
- error('Django 1.8 is required')
+ if django.VERSION[0] != 1 or django.VERSION[1] < 11:
+ error('Django 1.11+ is required')
del django