mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
commit
ebe126a3da
4 changed files with 29 additions and 22 deletions
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
|||
|
||||
# Seafile for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/seafile)  
|
||||
[](https://dash.yunohost.org/appci/app/seafile)  
|
||||
[](https://install-app.yunohost.org/?app=seafile)
|
||||
|
||||
*[Lire ce readme en français.](./README_fr.md)*
|
||||
|
|
34
README_fr.md
34
README_fr.md
|
@ -5,15 +5,15 @@ It shall NOT be edited by hand.
|
|||
|
||||
# Seafile pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/seafile)  
|
||||
[](https://dash.yunohost.org/appci/app/seafile)  
|
||||
[](https://install-app.yunohost.org/?app=seafile)
|
||||
|
||||
*[Read this readme in english.](./README.md)*
|
||||
|
||||
> *Ce package vous permet d'installer Seafile rapidement et simplement sur un serveur YunoHost.
|
||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||
> *Ce package vous permet d’installer Seafile rapidement et simplement sur un serveur YunoHost.
|
||||
Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.*
|
||||
|
||||
## Vue d'ensemble
|
||||
## Vue d’ensemble
|
||||
|
||||
Seafile is an open Source Cloud Storage application.
|
||||
|
||||
|
@ -24,16 +24,16 @@ It's a Enterprise file sync and share platform with high reliability and perform
|
|||
|
||||
**Démo :** https://demo.seafile.com
|
||||
|
||||
## Captures d'écran
|
||||
## Captures d’écran
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Avertissements / informations importantes
|
||||
|
||||
|
@ -137,9 +137,9 @@ TODO
|
|||
|
||||
## Documentations et ressources
|
||||
|
||||
* Site officiel de l'app : <https://www.seafile.com>
|
||||
* Documentation officielle de l'admin : <https://manual.seafile.com>
|
||||
* Dépôt de code officiel de l'app : <https://github.com/haiwen/seafile-server>
|
||||
* Site officiel de l’app : <https://www.seafile.com>
|
||||
* Documentation officielle de l’admin : <https://manual.seafile.com>
|
||||
* Dépôt de code officiel de l’app : <https://github.com/haiwen/seafile-server>
|
||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_seafile>
|
||||
* Signaler un bug : <https://github.com/YunoHost-Apps/seafile_ynh/issues>
|
||||
|
||||
|
@ -155,4 +155,4 @@ ou
|
|||
sudo yunohost app upgrade seafile -u https://github.com/YunoHost-Apps/seafile_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
||||
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
|
@ -15,6 +15,11 @@ install_source() {
|
|||
ynh_die --message "Error : this architecture is no longer supported by the upstream. Please create en issue here : https://github.com/YunoHost-Apps/seafile_ynh/issues to ask to discuss about a support of this architecture"
|
||||
fi
|
||||
ynh_setup_source "$final_path/seafile-server-$seafile_version" "$YNH_ARCH"
|
||||
|
||||
# Drop some conflicting package cf: https://forum.seafile.com/t/seahub-fails-to-start-nameerror-name-mysql-is-not-defined/14566/3
|
||||
ynh_secure_remove --file=$final_path/seafile-server-$seafile_version/seahub/thirdpart/MySQLdb
|
||||
ynh_secure_remove --file=$final_path/seafile-server-$seafile_version/seahub/thirdpart/cffi
|
||||
ynh_secure_remove --file=$final_path/seafile-server-$seafile_version/seahub/thirdpart/PIL
|
||||
}
|
||||
|
||||
install_source_7_0() {
|
||||
|
@ -56,9 +61,10 @@ set_permission() {
|
|||
chmod -R g-wx,o= $final_path
|
||||
setfacl -m user:www-data:rX $final_path
|
||||
setfacl -m user:www-data:rX $final_path/seafile-server-$seafile_version
|
||||
setfacl -m user:www-data:rX $final_path/seafile-server-latest/seahub
|
||||
setfacl -R -m user:www-data:rX $final_path/seafile-server-latest/seahub/media
|
||||
setfacl -R -m user:www-data:rX $final_path/seahub-data
|
||||
# At install time theses directory are not available
|
||||
test -e $final_path/seafile-server-latest/seahub && setfacl -m user:www-data:rX $final_path/seafile-server-latest/seahub
|
||||
test -e $final_path/seafile-server-latest/seahub/media && setfacl -R -m user:www-data:rX $final_path/seafile-server-latest/seahub/media
|
||||
test -e $final_path/seahub-data && setfacl -R -m user:www-data:rX $final_path/seahub-data
|
||||
|
||||
# check that this directory exist because in some really old install the data could still be in the main seafile directory
|
||||
# We also check at the install time when data directory is not already initialised
|
||||
|
|
|
@ -102,7 +102,8 @@ ynh_script_progression --message="Configuring application..." --weight=3
|
|||
# Run install script
|
||||
mv_expect_scripts
|
||||
chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh
|
||||
$expect_scripts_dir/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$fileserver_port" "$db_pwd"
|
||||
set_permission
|
||||
sudo -u $seafile_user $expect_scripts_dir/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$fileserver_port" "$db_pwd"
|
||||
|
||||
sleep 3
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue