Florian Eckert 6f00afc97b | 4 years ago | |
---|---|---|
.. | ||
files | 4 years ago | |
patches | 4 years ago | |
Makefile | 4 years ago | |
README.md | 5 years ago |
Consider where you would like the Seafile data directory
(seafile-data
), Seahub data directory (seahub-data
), and the
Seahub database (seahub.db
, if you will be using SQLite) to be
stored.
This location can be configured in /etc/config/seafile-server
(using the data_dir option); the default is /usr/share/seafile
.
If you are certain you will use a custom location, set this location
in /etc/config/seafile-server
before continuing with the other
installation steps.
Run one of the two setup scripts:
To use SQLite:
# setup-seafile
To use MySQL:
# setup-seafile-mysql
Create a Seafile admin account:
# create-seafile-admin
Start Seafile server:
# service seafile-server start
Please run the appropriate upgrade scripts in
/usr/share/seafile/seafile-server/upgrade
before using the new
version.
For more information, see https://download.seafile.com/published/seafile-manual/upgrade/upgrade.md.
Note that since version 7.1, configuration files are stored in
/etc/seafile
instead of /usr/share/seafile
.
If you are upgrading from a version before 7.1:
Run the upgrade scripts in
/usr/share/seafile/seafile-server/upgrade
up to 7.1.
Move the conf
and ccnet
directories from /usr/share/seafile
to
/etc/seafile
.
If you are using a custom Seafile data directory location and have
set this in ccnet/seafile.ini
:
Starting with 7.1, the Seafile data directory location will be taken
from /etc/config/seafile-server
, and any setting in
ccnet/seafile.ini
will be ignored.
It is strongly recommended to migrate the custom location setting to
/etc/config/seafile-server
and rename/remove the seafile.ini
file.
Note that the data_dir option in /etc/config/seafile-server
determines the parent path to the Seafile data directory (along
with the Seahub data directory and the Seahub database, if you are
using SQLite). The actual Seafile data directory must be named
seafile-data
.
For example, if your Seafile data directory is
/srv/seafile/my-seafile-data
:
Rename the directory to seafile-data
, so now the Seafile data
directory is /srv/seafile/seafile-data
.
Move the Seahub data directory (seahub-data
) from
/usr/share/seafile
into /srv/seafile
.
If you are using SQLite, move the Seahub database (seahub.db
)
from /usr/share/seafile
into /srv/seafile
.
Set the data_dir option in /etc/config/seafile-server
to the
parent path, /srv/seafile
.
Rename or delete ccnet/seafile.ini
.
Review/update your Seahub settings. In previous versions of the
Seahub OpenWrt package, some of Seahub's default settings (in
/usr/share/seafile/seafile-server/seahub/seahub/settings.py
) were
modified from the defaults shipped by upstream.
Starting with 7.1, Seahub's default settings are the same as
upstream, with custom settings added to
/etc/seafile/conf/seahub_settings.py
during setup for new
installations.
To use the same custom settings in your upgraded installation, add
these lines to /etc/seafile/conf/seahub_settings.py
:
# Custom settings for OpenWrt
USE_I18N = False
USER_PASSWORD_MIN_LENGTH = 8
USER_STRONG_PASSWORD_REQUIRED = True
Continue running the upgrade scripts up to the new version.