diff --git a/ci/ci.sh b/ci/ci.sh index 85e208c..c7a6bfd 100755 --- a/ci/ci.sh +++ b/ci/ci.sh @@ -1,6 +1,6 @@ #!/bin/bash -version=6.3.11 +version=6.3.4 set -e -x ./ci/install_deps.sh diff --git a/image/Makefile b/image/Makefile index f1211d5..19b96f1 100644 --- a/image/Makefile +++ b/image/Makefile @@ -1,4 +1,4 @@ -server_version=6.3.11 +server_version=6.3.4 base_image=seafileltd/base:18.04 base_image_squashed=seafileltd/base:18.04-squashed diff --git a/image/seafile/Dockerfile b/image/seafile/Dockerfile index 944c8a8..86dda05 100644 --- a/image/seafile/Dockerfile +++ b/image/seafile/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /opt/seafile RUN mkdir -p /etc/my_init.d -ENV SEAFILE_VERSION=6.3.3 SEAFILE_SERVER=seafile-server +ENV SEAFILE_VERSION=6.3.4 SEAFILE_SERVER=seafile-server RUN mkdir -p /opt/seafile/ && \ curl -sSL -o - https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz \ diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py index 6b21a85..d01ac31 100755 --- a/scripts/bootstrap.py +++ b/scripts/bootstrap.py @@ -128,6 +128,17 @@ def init_seafile_server(): domain = get_conf('SEAFILE_SERVER_HOSTNAME', 'seafile.example.com') proto = 'https' if is_https() else 'http' with open(join(topdir, 'conf', 'seahub_settings.py'), 'a+') as fp: + fp.write('\n') + fp.write("""CACHES = { + 'default': { + 'BACKEND': 'django_pylibmc.memcached.PyLibMCCache', + 'LOCATION': '127.0.0.1:11211', + }, + 'locmem': { + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', + }, +} +COMPRESS_CACHE_BACKEND = 'locmem'""") fp.write('\n') fp.write('FILE_SERVER_ROOT = "{proto}://{domain}/seafhttp"'.format(proto=proto, domain=domain)) fp.write('\n')