From 00dd3a9717a83a07be6a88819e3b5470287dbcf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 5 Nov 2019 20:11:29 +0100 Subject: [PATCH] Remove documentation about /opt directory --- README.md | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/README.md b/README.md index 705c01b..7f5df8a 100644 --- a/README.md +++ b/README.md @@ -77,37 +77,6 @@ Since now it's possible to change domain or the url of seafile but use it with p To do this run : `yunohost app change-url seafile -d new_domain.tld -p PATH new_path -### Use a special user and put seafile binary in /opt 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 -``` - Links -----