From 352c0e56207844c0a30fdc8c002cc5ac1181d6d5 Mon Sep 17 00:00:00 2001 From: Junxiang Huang Date: Fri, 15 Nov 2024 15:35:36 +0800 Subject: [PATCH] update 12.0 fuse --- manual/extension/fuse.md | 79 +++++++++---------- manual/setup/cluster_deploy_with_docker.md | 1 - manual/setup/migrate_non_docker_to_docker.md | 2 +- manual/setup_binary/installation_ce.md | 1 - .../migrate_from_sqlite_to_mysql.md | 4 +- manual/upgrade/upgrade_a_cluster.md | 1 - 6 files changed, 41 insertions(+), 47 deletions(-) diff --git a/manual/extension/fuse.md b/manual/extension/fuse.md index 5f100402a..5ad108fc5 100644 --- a/manual/extension/fuse.md +++ b/manual/extension/fuse.md @@ -17,6 +17,43 @@ However, administrators sometimes want to access the files directly on the serve * Currently the implementation is '''read-only''', which means you can't modify the files through the mounted folder. * One debian/centos systems, you need to be in the "fuse" group to have the permission to mount a FUSE folder. +## Use seaf-fuse in Docker based deployment + +Assume we want to mount to `/opt/seafile-fuse` in host. + +##### Modify seafile-server.yml + +Add the following content + +```yml + seafile: + ... + volumes: + ... + - /opt/seafile-fuse: /seafile-fuse + privileged: true + cap_add: + - SYS_ADMIN +``` + +##### Start seaf-fuse with the script in docker + +Start Seafile server and enter the container + +```bash +docker compose up -d + +docker exec -it seafile bash +``` + +Start seaf-fuse in the container + +```bash +cd /opt/seafile/seafile-server-latest/ + +./seaf-fuse.sh start /seafile-fuse +``` + ## Use seaf-fuse in binary based deployment Assume we want to mount to `/data/seafile-fuse`. @@ -105,45 +142,3 @@ sudo usermod -a -G fuse * Logout your shell and login again * Now try `./seaf-fuse.sh start `again. - - -## Use seaf-fuse in Docker based deployment - -Assume we want to mount to `/data/seafile-fuse` in host. - -##### Modify docker-compose.yml - -Add the following content - -```yml - seafile: - ... - volumes: - ... - - type: bind - source: /data/seafile-fuse - target: /seafile-fuse - bind: - propagation: rshared - privileged: true - cap_add: - - SYS_ADMIN -``` - -##### Start seaf-fuse with the script in docker - -Start Seafile server and enter the container - -```bash -docker compose up -d - -docker exec -it seafile bash -``` - -Start seaf-fuse in the container - -```bash -cd /opt/seafile/seafile-server-latest/ - -./seaf-fuse.sh start /seafile-fuse -``` diff --git a/manual/setup/cluster_deploy_with_docker.md b/manual/setup/cluster_deploy_with_docker.md index bd0b1435a..219b8350b 100644 --- a/manual/setup/cluster_deploy_with_docker.md +++ b/manual/setup/cluster_deploy_with_docker.md @@ -54,7 +54,6 @@ We assume you have already deployed memcache, MariaDB, ElasticSearch in separate ``` 6. Check and modify the configuration files (e.g., MySQL, Memcached, Elasticsearch) in configuration files - - [ccnet.conf](../config/ccnet-conf.md) - [seafevents.conf](../config/seafevents-conf.md) - [seafile.conf](../config/seafile-conf.md) - [seahub_settings.py](../config/seahub_settings_py.md) diff --git a/manual/setup/migrate_non_docker_to_docker.md b/manual/setup/migrate_non_docker_to_docker.md index 042e6c15b..aea059d54 100644 --- a/manual/setup/migrate_non_docker_to_docker.md +++ b/manual/setup/migrate_non_docker_to_docker.md @@ -135,7 +135,7 @@ In `/etc/mysql/mariadb.conf.d/50-server.cnf` edit the following line to: ``` bind-address = 192.168.123.45 ``` -then edit /opt/seafile-data/seafile/conf/ -> ccnet.conf seafile.conf seahub_settings.py in the Host-Line to that IP and execute the following commands: +then edit /opt/seafile-data/seafile/conf/ -> seafile.conf seahub_settings.py in the Host-Line to that IP and execute the following commands: ``` service networking reload diff --git a/manual/setup_binary/installation_ce.md b/manual/setup_binary/installation_ce.md index f1099276c..17c18d7e5 100644 --- a/manual/setup_binary/installation_ce.md +++ b/manual/setup_binary/installation_ce.md @@ -244,7 +244,6 @@ $ tree /opt/seafile -L 2 seafile ├── ccnet ├── conf -│ └── ccnet.conf │ └── gunicorn.conf.py │ └── seafdav.conf │ └── seafile.conf diff --git a/manual/setup_binary/migrate_from_sqlite_to_mysql.md b/manual/setup_binary/migrate_from_sqlite_to_mysql.md index 56485351a..09d0eb302 100644 --- a/manual/setup_binary/migrate_from_sqlite_to_mysql.md +++ b/manual/setup_binary/migrate_from_sqlite_to_mysql.md @@ -49,7 +49,9 @@ mysql> use seahub_db; mysql> source seahub-db.sql; ``` -Modify configure files:Append following lines to [ccnet.conf](../config/ccnet-conf.md): +!!! danger "`ccnet.conf` has been removed since Seafile 12.0" + +Modify configure files:Append following lines to ccnet.conf: ``` [Database] diff --git a/manual/upgrade/upgrade_a_cluster.md b/manual/upgrade/upgrade_a_cluster.md index 3a1568f80..e76760a73 100644 --- a/manual/upgrade/upgrade_a_cluster.md +++ b/manual/upgrade/upgrade_a_cluster.md @@ -175,7 +175,6 @@ After the upgrade, you should see the configuration files has been moved to the ``` conf/ - |__ ccnet.conf |__ seafile.conf |__ seafevent.conf |__ seafdav.conf