Seafile package for YunoHost
Find a file
2018-04-03 01:48:33 +02:00
conf Fix stretch 2018-03-12 20:57:53 +01:00
scripts Fix when LANG is undefine 2018-04-03 01:48:33 +02:00
sources/patches Use helper ynh_setup_source 2018-01-19 21:56:03 +01:00
.gitattributes Add .gitattributes 2014-12-09 22:29:25 +01:00
.gitignore Many Fix and set /opt as default install dir 2017-12-09 21:09:19 +01:00
check_process Fix UnicodeDecodeError with python scripts 2018-03-09 22:36:51 +01:00
LICENSE Add license infos 2015-10-28 15:48:10 +01:00
manifest.json Add constraint on server name 2018-04-03 01:47:33 +02:00
README.md Add Status Info 2017-12-15 22:28:30 +01:00

Seafile for Yunohost

Seafile is an open Source Cloud Storage application.

Official website: http://seafile.com/

Integration level

Install Seafile with YunoHost

Requirements

Functionnal instance of Yunohost

Installation

From command line:

sudo yunohost app install -l Seafile https://github.com/YunoHost-Apps/seafile_ynh

Upgrade

From command line:

sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/seafile_ynh

Infos

Seafile server v6.1.0

Available for x64, i386, and Raspberry Pi architecture but only tested for x64 (feedback are welcome)

Seafile no longer distribute binary for generic armhf architectures but rpi binary could work.

/!\ To login use your yunohost email not your username.

Change URL

Since now it's possible to change domain or the url of seafile but use it with precaution because it has not been tested enought for a big production installation. For the authentification and user every email for authentification will have the new domain name. For example toto@old_domain.tld will be toto@new_domain.tld.

To do this run : `yunohost app change-url seafile -d new_domain.tld -p PATH new_path

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

Use a special 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. In the new package version the install is by default in /opt dir, so it section is only usefull for user how as already installed seafile.

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/$(sudo yunohost app setting seafile domain).d/seafile.conf

# Set the good user for seafile
sudo chown seafile:seafile -R /opt/yunohost/seafile
sudo chown seafile:seafile -R /home/yunohost.app/seafile-data/

# Restart services
sudo rm -rf /tmp/seahub_cache
sudo systemctl daemon-reload
sudo service nginx reload
sudo service seafile-server start

Developper infos

Please do your pull request to the Dev branch.

Test or upgrade to dev version:

su - admin
git clone -b Dev https://github.com/YunoHost-Apps/seafile_ynh
# to install
sudo yunohost app install -l Seafile /home/admin/seafile_ynh
# to upgrade
sudo yunohost app upgrade -f /home/admin/seafile_ynh seafile