diff --git a/roles/seafile/tasks/cleanup.yml b/roles/seafile/tasks/cleanup.yml index b4a32cc..79b45d8 100644 --- a/roles/seafile/tasks/cleanup.yml +++ b/roles/seafile/tasks/cleanup.yml @@ -7,5 +7,6 @@ - "{{ seafile_root_dir }}/tmp/seafile-server-{{ seafile_version }}" - "{{ seafile_root_dir }}/tmp/seafile-pro-server_{{ seafile_version }}_x86-64.tar.gz" - "{{ seafile_root_dir }}/tmp/seafile-pro-server-{{ seafile_version }}" - - "/etc/cron.d/seafil_gc" + - /etc/cron.d/seafil_gc + - "{{ seafile_root_dir }}/db_dumps" tags: seafile diff --git a/roles/seafile/templates/seafile_dump_db.sh.j2 b/roles/seafile/templates/seafile_dump_db.sh.j2 index 0f36293..0ddbd43 100644 --- a/roles/seafile/templates/seafile_dump_db.sh.j2 +++ b/roles/seafile/templates/seafile_dump_db.sh.j2 @@ -5,5 +5,5 @@ for DB in {{ seafile_db_ccnet }} {{ seafile_db_seafile }} {{ seafile_db_seahub } --password={{ seafile_db_pass }} \ --host={{ seafile_db_server }} \ --quick --single-transaction \ - --add-drop-table $DB | lz4 -c > {{ seafile_data_dir }}/db_dumps/$DB.sql.lz4 + --add-drop-table $DB | zstd -T0 -c > {{ seafile_data_dir }}/backup/$DB.sql.zst done diff --git a/roles/seafile/templates/seafile_rm_dumps.sh.j2 b/roles/seafile/templates/seafile_rm_dumps.sh.j2 index b760358..f1e9ba9 100644 --- a/roles/seafile/templates/seafile_rm_dumps.sh.j2 +++ b/roles/seafile/templates/seafile_rm_dumps.sh.j2 @@ -1,3 +1,3 @@ #!/bin/sh -rm -f {{ seafile_data_dir }}/db_dumps/* +rm -f {{ seafile_data_dir }}/backup/* diff --git a/roles/squid/files/acl/software_centos.domains b/roles/squid/files/acl/software_centos.domains index 36cecf1..7cce953 100644 --- a/roles/squid/files/acl/software_centos.domains +++ b/roles/squid/files/acl/software_centos.domains @@ -7,3 +7,7 @@ centos.mirrors.ovh.net distrib-coffee.ipsl.jussieu.fr centos.crazyfrogs.org mirror.plusserver.com +mirrors.atosworldline.com +fr2.rpmfind.net +centos.mirror.fr.planethoster.net +miroir.univ-paris13.fr diff --git a/roles/squid/files/acl/software_various.domains b/roles/squid/files/acl/software_various.domains index 9d34b55..c1528ee 100644 --- a/roles/squid/files/acl/software_various.domains +++ b/roles/squid/files/acl/software_various.domains @@ -32,6 +32,9 @@ pypi.python.org pypi.org files.pythonhosted.org +# Ruby +api.rubygems.org + # Seadrive download.seadrive.org rpm.seadrive.org