2015-02-20 15:07:18 +01:00
|
|
|
Seafile for Yunohost
|
|
|
|
============
|
|
|
|
|
2015-03-18 18:35:38 +01:00
|
|
|
Seafile is an open Source Cloud Storage application.
|
2015-02-20 15:07:18 +01:00
|
|
|
|
2015-03-18 18:35:38 +01:00
|
|
|
Official website: <http://seafile.com/>
|
2015-02-20 15:07:18 +01:00
|
|
|
|
2015-03-18 18:35:38 +01:00
|
|
|
Requirements
|
|
|
|
------------
|
2015-02-20 15:07:18 +01:00
|
|
|
|
2015-03-18 18:35:38 +01:00
|
|
|
Functionnal instance of [Yunohost](https://yunohost.org/#/)
|
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
From command line:
|
|
|
|
|
2016-06-22 11:42:13 +02:00
|
|
|
`sudo yunohost app install -l Seafile https://github.com/YunoHost-Apps/seafile_ynh`
|
2015-03-18 18:35:38 +01:00
|
|
|
|
|
|
|
Upgrade
|
|
|
|
-------
|
|
|
|
|
2015-03-25 19:14:18 +01:00
|
|
|
From command line:
|
|
|
|
|
2016-06-22 11:42:13 +02:00
|
|
|
`sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/seafile_ynh`
|
2015-03-18 18:35:38 +01:00
|
|
|
|
|
|
|
Infos
|
|
|
|
-----
|
2015-02-20 15:07:18 +01:00
|
|
|
|
2016-12-27 10:44:40 +01:00
|
|
|
Seafile server v6.0.6
|
2015-10-22 23:30:16 +02:00
|
|
|
|
2016-01-02 18:07:10 +01:00
|
|
|
Available for x64, i386, and Raspberry Pi architecture but only tested for x64 (feedback are welcome)
|
2015-03-18 18:35:38 +01:00
|
|
|
|
2016-01-02 18:07:10 +01:00
|
|
|
Seafile no longer distribute binary for generic armhf architectures but rpi binary could work.
|
2015-09-04 22:49:04 +02:00
|
|
|
|
2015-10-22 23:30:16 +02:00
|
|
|
/!\ To login use your yunohost email not your username.
|
2015-03-18 18:35:38 +01:00
|
|
|
|
2015-10-28 15:48:10 +01:00
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
Seafile server and its desktop clients are published under GPLv2.
|
|
|
|
|
|
|
|
Mobile clients are published under the GPLv3.
|
|
|
|
|
|
|
|
The Seafile server's web end, i.e. Seahub, is published under the Apache License.
|
|
|
|
|
|
|
|
This package is published under MIT License
|
|
|
|
|
2015-03-18 18:35:38 +01:00
|
|
|
TODO
|
|
|
|
-----
|
|
|
|
|
2016-01-02 18:31:41 +01:00
|
|
|
- Auto login/logout, see #1
|
|
|
|
- Test of backup/restore script
|
|
|
|
|
2016-12-27 10:44:40 +01:00
|
|
|
Use a spial user and put seafile binary in /opt dir :
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
With this new package for a better security, it's possible to run seafile with a special user (seafile) put all seafile file in /opt/yunohost dir.
|
|
|
|
To do this open a console and do this command :
|
|
|
|
|
|
|
|
```
|
|
|
|
# stop seafile server
|
|
|
|
sudo service seafile-server stop
|
|
|
|
|
|
|
|
# Move all data to opt and change user
|
|
|
|
sudo mv /var/www/seafile /opt/yunohost/seafile
|
|
|
|
sudo addgroup seafile --system --quiet
|
|
|
|
sudo adduser seafile --disabled-login --ingroup seafile --system --quiet --shell /bin/bash --home /opt/yunohost/seafile
|
|
|
|
|
|
|
|
# Adapt configuration
|
|
|
|
sudo sed -i "s@user=www-data@user=seafile@g" /etc/init.d/seafile-server
|
|
|
|
sudo sed -i "s@seafile_dir=/var/www/seafile@seafile_dir=/opt/yunohost/seafile@g" /etc/init.d/seafile-server
|
|
|
|
sudo sed -i "s@alias /var/www/seafile/@alias /opt/yunohost/seafile/@g" /etc/nginx/conf.d/$domain.d/seafile.conf
|
|
|
|
|
|
|
|
# Restart services
|
|
|
|
sudo service nginx reload
|
|
|
|
sudo service seafile-server start
|
|
|
|
```
|
|
|
|
|
2016-01-02 18:31:41 +01:00
|
|
|
Developper infos
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Please do your pull request to the Dev branch.
|
|
|
|
|
|
|
|
Test or upgrade to dev version:
|
|
|
|
```
|
|
|
|
su - admin
|
2016-06-22 11:42:13 +02:00
|
|
|
git clone -b Dev https://github.com/YunoHost-Apps/seafile_ynh
|
2016-01-02 18:31:41 +01:00
|
|
|
# to install
|
|
|
|
sudo yunohost app install -l Seafile /home/admin/seafile_ynh
|
|
|
|
# to upgrade
|
|
|
|
sudo yunohost app upgrade -f /home/admin/seafile_ynh seafile
|
|
|
|
|
2016-06-22 11:42:13 +02:00
|
|
|
```
|