From 6993d674ab300b06c302bd4c9a8e103f9cfac6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 1 Nov 2022 07:12:00 +0100 Subject: [PATCH 1/7] Fix install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 0aabce2..5b53b1d 100644 --- a/scripts/install +++ b/scripts/install @@ -102,7 +102,7 @@ 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" +sudo -u $seafile_user $expect_scripts_dir/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$fileserver_port" "$db_pwd" sleep 3 From 56e579ac7383f66cae5ec0bf9e4d5cbc6916f726 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 1 Nov 2022 06:13:25 +0000 Subject: [PATCH 2/7] Auto-update README --- README.md | 1 - README_fr.md | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 4872a5d..5a33087 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ It's a Enterprise file sync and share platform with high reliability and perform **Shipped version:** 9.0.2~ynh2 - **Demo:** https://demo.seafile.com ## Screenshots diff --git a/README_fr.md b/README_fr.md index ddb806d..5a27aaa 100644 --- a/README_fr.md +++ b/README_fr.md @@ -20,8 +20,7 @@ Seafile is an open Source Cloud Storage application. It's a Enterprise file sync and share platform with high reliability and performance. It's a file hosting platform with high reliability and performance. Put files on your own server. Sync and share files across different devices, or access all the files as a virtual disk. -**Version incluse :** 9.0.2~ynh2 - +**Version incluse :** 9.0.2~ynh2 **Démo :** https://demo.seafile.com From 24f9be66109a37714a538acb2819b13f531076b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 1 Nov 2022 12:23:47 +0100 Subject: [PATCH 3/7] Add missing set permission --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index 5b53b1d..5023e1b 100644 --- a/scripts/install +++ b/scripts/install @@ -102,6 +102,7 @@ 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 +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 From 2261494d230247b055cc1561e1ca728be1e3ddb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 2 Nov 2022 17:19:55 +0100 Subject: [PATCH 4/7] Fix install --- scripts/_common.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index f901cf4..00800e9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -56,9 +56,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 From 40f965959fa2fb397be89a28b3f0ff3683e8b688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 31 Jan 2023 18:34:00 +0100 Subject: [PATCH 5/7] Fix install/upgrade on ARM --- scripts/_common.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 00800e9..6f2ee35 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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() { From 13a2e462783eecdf6897e311ee8f1e8707c7cd3e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 31 Jan 2023 17:38:57 +0000 Subject: [PATCH 6/7] Auto-update README --- README.md | 2 +- README_fr.md | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 5a33087..91b73d7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Seafile for YunoHost -[![Integration level](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Working status](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Working status](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) [![Install Seafile with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=seafile) *[Lire ce readme en français.](./README_fr.md)* diff --git a/README_fr.md b/README_fr.md index 5a27aaa..69420d2 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,15 +5,15 @@ It shall NOT be edited by hand. # Seafile pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) [![Installer Seafile avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](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 -![Capture d'écran de Seafile](./doc/screenshots/mobile-ios-client.jpg) -![Capture d'écran de Seafile](./doc/screenshots/drive-client.png) -![Capture d'écran de Seafile](./doc/screenshots/file-locking.jpg) -![Capture d'écran de Seafile](./doc/screenshots/access-logs.jpg) -![Capture d'écran de Seafile](./doc/screenshots/file-history.png) -![Capture d'écran de Seafile](./doc/screenshots/wiki_en.png) -![Capture d'écran de Seafile](./doc/screenshots/sharing-dialog.png) -![Capture d'écran de Seafile](./doc/screenshots/sync-client.jpg) +![Capture d’écran de Seafile](./doc/screenshots/mobile-ios-client.jpg) +![Capture d’écran de Seafile](./doc/screenshots/drive-client.png) +![Capture d’écran de Seafile](./doc/screenshots/file-locking.jpg) +![Capture d’écran de Seafile](./doc/screenshots/access-logs.jpg) +![Capture d’écran de Seafile](./doc/screenshots/file-history.png) +![Capture d’écran de Seafile](./doc/screenshots/wiki_en.png) +![Capture d’écran de Seafile](./doc/screenshots/sharing-dialog.png) +![Capture d’écran de Seafile](./doc/screenshots/sync-client.jpg) ## Avertissements / informations importantes @@ -137,9 +137,9 @@ TODO ## Documentations et ressources -* Site officiel de l'app : -* Documentation officielle de l'admin : -* Dépôt de code officiel de l'app : +* Site officiel de l’app : +* Documentation officielle de l’admin : +* Dépôt de code officiel de l’app : * Documentation YunoHost pour cette app : * Signaler un bug : @@ -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 :** +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file From 7fbe0693b8f6c965f0d73670ec0d9c7dada727cd Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 31 Jan 2023 21:57:06 +0000 Subject: [PATCH 7/7] Auto-update README --- README.md | 2 +- README_fr.md | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 5a33087..91b73d7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It shall NOT be edited by hand. # Seafile for YunoHost -[![Integration level](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Working status](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Working status](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) [![Install Seafile with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=seafile) *[Lire ce readme en français.](./README_fr.md)* diff --git a/README_fr.md b/README_fr.md index 5a27aaa..69420d2 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,15 +5,15 @@ It shall NOT be edited by hand. # Seafile pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/seafile.svg)](https://dash.yunohost.org/appci/app/seafile) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/seafile.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/seafile.maintain.svg) [![Installer Seafile avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](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 -![Capture d'écran de Seafile](./doc/screenshots/mobile-ios-client.jpg) -![Capture d'écran de Seafile](./doc/screenshots/drive-client.png) -![Capture d'écran de Seafile](./doc/screenshots/file-locking.jpg) -![Capture d'écran de Seafile](./doc/screenshots/access-logs.jpg) -![Capture d'écran de Seafile](./doc/screenshots/file-history.png) -![Capture d'écran de Seafile](./doc/screenshots/wiki_en.png) -![Capture d'écran de Seafile](./doc/screenshots/sharing-dialog.png) -![Capture d'écran de Seafile](./doc/screenshots/sync-client.jpg) +![Capture d’écran de Seafile](./doc/screenshots/mobile-ios-client.jpg) +![Capture d’écran de Seafile](./doc/screenshots/drive-client.png) +![Capture d’écran de Seafile](./doc/screenshots/file-locking.jpg) +![Capture d’écran de Seafile](./doc/screenshots/access-logs.jpg) +![Capture d’écran de Seafile](./doc/screenshots/file-history.png) +![Capture d’écran de Seafile](./doc/screenshots/wiki_en.png) +![Capture d’écran de Seafile](./doc/screenshots/sharing-dialog.png) +![Capture d’écran de Seafile](./doc/screenshots/sync-client.jpg) ## Avertissements / informations importantes @@ -137,9 +137,9 @@ TODO ## Documentations et ressources -* Site officiel de l'app : -* Documentation officielle de l'admin : -* Dépôt de code officiel de l'app : +* Site officiel de l’app : +* Documentation officielle de l’admin : +* Dépôt de code officiel de l’app : * Documentation YunoHost pour cette app : * Signaler un bug : @@ -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 :** +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file