1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/filebrowser_ynh.git synced 2024-09-03 18:36:05 +02:00

Merge branch 'testing' into upgrade_full_replace

This commit is contained in:
eric_G 2024-05-01 09:11:07 +02:00 committed by GitHub
commit f0024732fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 249 additions and 63 deletions

7
ALL_README.md Normal file
View file

@ -0,0 +1,7 @@
# All available README files by language
- [Read the README in English](README.md)
- [Irakurri README euskaraz](README_eu.md)
- [Lire le README en français](README_fr.md)
- [Le o README en galego](README_gl.md)
- [阅读中文(简体)的 README](README_zh_Hans.md)

View file

@ -1,5 +1,5 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
N.B.: This README was automatically generated by <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
It shall NOT be edited by hand.
-->
@ -9,17 +9,17 @@ It shall NOT be edited by hand.
[![Install Filebrowser with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=filebrowser)
*[Lire ce readme en français.](./README_fr.md)*
*[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install Filebrowser quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
> *This package allows you to install Filebrowser quickly and simply on a YunoHost server.*
> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
## Overview
filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
FileBrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
**Shipped version:** 2.26.0~ynh1
**Shipped version:** 2.29.0~ynh1
## Screenshots
@ -27,17 +27,17 @@ filebrowser provides a file managing interface within a specified directory and
## Documentation and resources
* Official app website: <https://filebrowser.org>
* Official admin documentation: <https://filebrowser.org/>
* Upstream app code repository: <https://github.com/filebrowser/filebrowser>
* YunoHost Store: <https://apps.yunohost.org/app/filebrowser>
* Report a bug: <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
- Official app website: <https://filebrowser.org>
- Official admin documentation: <https://filebrowser.org/>
- Upstream app code repository: <https://github.com/filebrowser/filebrowser>
- YunoHost Store: <https://apps.yunohost.org/app/filebrowser>
- Report a bug: <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing).
Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing).
To try the testing branch, please proceed like that.
To try the `testing` branch, please proceed like that:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug

48
README_eu.md Normal file
View file

@ -0,0 +1,48 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# Filebrowser YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/filebrowser.svg)](https://dash.yunohost.org/appci/app/filebrowser) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/filebrowser.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/filebrowser.maintain.svg)
[![Instalatu Filebrowser YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=filebrowser)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek Filebrowser YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
FileBrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
**Paketatutako bertsioa:** 2.29.0~ynh1
## Pantaila-argazkiak
![Filebrowser(r)en pantaila-argazkia](./doc/screenshots/screenshot.PNG)
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://filebrowser.org>
- Administratzaileen dokumentazio ofiziala: <https://filebrowser.org/>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/filebrowser/filebrowser>
- YunoHost Denda: <https://apps.yunohost.org/app/filebrowser>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
edo
sudo yunohost app upgrade filebrowser -u https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -1,6 +1,6 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
It shall NOT be edited by hand.
Nota bene: ce README est automatiquement généré par <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
Il NE doit PAS être modifié à la main.
-->
# Filebrowser pour YunoHost
@ -9,17 +9,16 @@ It shall NOT be edited by hand.
[![Installer Filebrowser avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=filebrowser)
*[Read this readme in english.](./README.md)*
*[Lire le README dans d'autres langues.](./ALL_README.md)*
> *Ce package vous permet dinstaller Filebrowser rapidement et simplement sur un serveur YunoHost.
Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
> *Ce package vous permet dinstaller Filebrowser rapidement et simplement sur un serveur YunoHost.*
> *Si vous navez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment linstaller et en profiter.*
## Vue densemble
filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
FileBrowser fournit une interface de gestion de fichiers dans un répertoire spécifié et peut être utilisé pour télécharger, supprimer, prévisualiser, renommer et modifier vos fichiers. Il permet la création de plusieurs utilisateurs et chaque utilisateur peut avoir son propre répertoire. Il peut être utilisé comme application autonome ou comme middleware.
**Version incluse :** 2.26.0~ynh1
**Version incluse:** 2.29.0~ynh1
## Captures décran
@ -27,17 +26,17 @@ filebrowser provides a file managing interface within a specified directory and
## Documentations et ressources
* Site officiel de lapp : <https://filebrowser.org>
* Documentation officielle de ladmin : <https://filebrowser.org/>
* Dépôt de code officiel de lapp : <https://github.com/filebrowser/filebrowser>
* YunoHost Store: <https://apps.yunohost.org/app/filebrowser>
* Signaler un bug : <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
- Site officiel de lapp: <https://filebrowser.org>
- Documentation officielle de ladmin: <https://filebrowser.org/>
- Dépôt de code officiel de lapp: <https://github.com/filebrowser/filebrowser>
- YunoHost Store: <https://apps.yunohost.org/app/filebrowser>
- Signaler un bug: <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing).
Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit.
Pour essayer la branche `testing`, procédez comme suit:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
@ -45,4 +44,4 @@ ou
sudo yunohost app upgrade filebrowser -u https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
```
**Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>
**Plus dinfos sur le packaging dapplications:** <https://yunohost.org/packaging_apps>

48
README_gl.md Normal file
View file

@ -0,0 +1,48 @@
<!--
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
NON debe editarse manualmente.
-->
# Filebrowser para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/filebrowser.svg)](https://dash.yunohost.org/appci/app/filebrowser) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/filebrowser.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/filebrowser.maintain.svg)
[![Instalar Filebrowser con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=filebrowser)
*[Le este README en outros idiomas.](./ALL_README.md)*
> *Este paquete permíteche instalar Filebrowser de xeito rápido e doado nun servidor YunoHost.*
> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.*
## Vista xeral
FileBrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
**Versión proporcionada:** 2.29.0~ynh1
## Capturas de pantalla
![Captura de pantalla de Filebrowser](./doc/screenshots/screenshot.PNG)
## Documentación e recursos
- Web oficial da app: <https://filebrowser.org>
- Documentación oficial para admin: <https://filebrowser.org/>
- Repositorio de orixe do código: <https://github.com/filebrowser/filebrowser>
- Tenda YunoHost: <https://apps.yunohost.org/app/filebrowser>
- Informar dun problema: <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
## Info de desenvolvemento
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing).
Para probar a rama `testing`, procede deste xeito:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
ou
sudo yunohost app upgrade filebrowser -u https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
```
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>

48
README_it.md Normal file
View file

@ -0,0 +1,48 @@
<!--
N.B.: Questo README è stato automaticamente generato da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
NON DEVE essere modificato manualmente.
-->
# Filebrowser per YunoHost
[![Livello di integrazione](https://dash.yunohost.org/integration/filebrowser.svg)](https://dash.yunohost.org/appci/app/filebrowser) ![Stato di funzionamento](https://ci-apps.yunohost.org/ci/badges/filebrowser.status.svg) ![Stato di manutenzione](https://ci-apps.yunohost.org/ci/badges/filebrowser.maintain.svg)
[![Installa Filebrowser con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=filebrowser)
*[Leggi questo README in altre lingue.](./ALL_README.md)*
> *Questo pacchetto ti permette di installare Filebrowser su un server YunoHost in modo semplice e veloce.*
> *Se non hai YunoHost, consulta [la guida](https://yunohost.org/install) per imparare a installarlo.*
## Panoramica
filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
**Versione pubblicata:** 2.26.0~ynh1
## Screenshot
![Screenshot di Filebrowser](./doc/screenshots/screenshot.PNG)
## Documentazione e risorse
- Sito web ufficiale dellapp: <https://filebrowser.org>
- Documentazione ufficiale per gli amministratori: <https://filebrowser.org/>
- Repository upstream del codice dellapp: <https://github.com/filebrowser/filebrowser>
- Store di YunoHost: <https://apps.yunohost.org/app/filebrowser>
- Segnala un problema: <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
## Informazioni per sviluppatori
Si prega di inviare la tua pull request alla [branch di `testing`](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing).
Per provare la branch di `testing`, si prega di procedere in questo modo:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
o
sudo yunohost app upgrade filebrowser -u https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
```
**Maggiori informazioni riguardo il pacchetto di questapp:** <https://yunohost.org/packaging_apps>

48
README_zh_Hans.md Normal file
View file

@ -0,0 +1,48 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 的 Filebrowser
[![集成程度](https://dash.yunohost.org/integration/filebrowser.svg)](https://dash.yunohost.org/appci/app/filebrowser) ![工作状态](https://ci-apps.yunohost.org/ci/badges/filebrowser.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/filebrowser.maintain.svg)
[![使用 YunoHost 安装 Filebrowser](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=filebrowser)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Filebrowser。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
FileBrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
**分发版本:** 2.29.0~ynh1
## 截图
![Filebrowser 的截图](./doc/screenshots/screenshot.PNG)
## 文档与资源
- 官方应用网站: <https://filebrowser.org>
- 官方管理文档: <https://filebrowser.org/>
- 上游应用代码库: <https://github.com/filebrowser/filebrowser>
- YunoHost 商店: <https://apps.yunohost.org/app/filebrowser>
- 报告 bug <https://github.com/YunoHost-Apps/filebrowser_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
sudo yunohost app upgrade filebrowser -u https://github.com/YunoHost-Apps/filebrowser_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

View file

@ -1 +1 @@
By default, the root path is set to `/home/yunohost.app/filebrowser`. You can choose a different root path in filebrowser configuration file: `/var/www/filebrowser/settings.json` and modify **root** entry as desired. (you may need to set the correct permissions for the new path).
By default, the root path is set to `__DATA_DIR__`. You can choose a different root path in filebrowser configuration file: `__INSTALL_DIR__/settings.json` and modify **root** entry as desired. (you may need to set the correct permissions for the new path).

View file

@ -1 +1 @@
filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.
FileBrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app or as a middleware.

1
doc/DESCRIPTION_fr.md Normal file
View file

@ -0,0 +1 @@
FileBrowser fournit une interface de gestion de fichiers dans un répertoire spécifié et peut être utilisé pour télécharger, supprimer, prévisualiser, renommer et modifier vos fichiers. Il permet la création de plusieurs utilisateurs et chaque utilisateur peut avoir son propre répertoire. Il peut être utilisé comme application autonome ou comme middleware.

View file

@ -5,7 +5,7 @@ name = "Filebrowser"
description.en = "Web File Browser"
description.fr = "Gestionnaire de fichiers"
version = "2.26.0~ynh1"
version = "2.29.0~ynh1"
maintainers = ["eric_G"]
@ -19,8 +19,11 @@ code = "https://github.com/filebrowser/filebrowser"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = "not_relevant"
sso = "not_relevant"
disk = "50M"
ram.build = "100M"
ram.runtime = "50M"
@ -43,14 +46,14 @@ ram.runtime = "50M"
[resources.sources.main]
in_subdir = false
amd64.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.26.0/linux-amd64-filebrowser.tar.gz"
amd64.sha256 = "02c659acb3c6277d396cda873f296d9748900f1a007ceb006d6b92951ad6db0d"
arm64.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.26.0/linux-arm64-filebrowser.tar.gz"
arm64.sha256 = "fd8de3bcc35307a0b662a86fdb51b2a511eff18f3b912e96b89aec3ad8827866"
i386.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.26.0/linux-386-filebrowser.tar.gz"
i386.sha256 = "f60b0876d4d3b45a8d457907b388ff4035bdec15b1cd1f8162f4c02a71586a51"
armhf.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.26.0/linux-armv7-filebrowser.tar.gz"
armhf.sha256 = "718317c70e6f2d9e09ababb7be24b9f73c744c1c0878cc656fc69c19384ebee7"
amd64.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.29.0/linux-amd64-filebrowser.tar.gz"
amd64.sha256 = "0b5b788e3b78e7bce84ee9047a9eff2d7deae030080a047c1bbb544eca16b0d0"
arm64.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.29.0/linux-arm64-filebrowser.tar.gz"
arm64.sha256 = "499b2fae58406e7f539ae75195e29a0924ea28915b6916ac66b97ba811af1124"
i386.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.29.0/linux-386-filebrowser.tar.gz"
i386.sha256 = "0bb9b713258654680f46982a2e2453d6f5d343680dcf62beb3a43733a17aab47"
armhf.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.29.0/linux-armv7-filebrowser.tar.gz"
armhf.sha256 = "5264787cfc4292fb0491d88f9152f2c23bb59f397cfed9e76d32af25fd505c5c"
autoupdate.strategy = "latest_github_release"
autoupdate.asset.amd64 = "^linux-amd64-filebrowser.tar.gz$"

View file

@ -31,7 +31,7 @@ ynh_change_url_nginx_config
ynh_script_progression --message="Adding a configuration file..." --weight=1
path="$new_path"
ynh_add_config --template="../conf/settings.json" --destination="$install_dir/settings.json"
ynh_add_config --template="settings.json" --destination="$install_dir/settings.json"
chmod 600 "$install_dir/settings.json"
chown $app:$app "$install_dir/settings.json"

View file

@ -41,7 +41,7 @@ yunohost service add $app --description="Web File Browser" --log="/var/log/$app/
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/settings.json" --destination="$install_dir/settings.json"
ynh_add_config --template="settings.json" --destination="$install_dir/settings.json"
chmod 600 "$install_dir/settings.json"
chown $app:$app "$install_dir/settings.json"

View file

@ -9,7 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
@ -24,10 +23,8 @@ then
yunohost service remove $app
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================

View file

@ -6,7 +6,6 @@
# IMPORT GENERIC HELPERS
#=================================================
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers

View file

@ -9,12 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -27,14 +21,10 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=4
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="settings.json"
fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -45,10 +35,8 @@ chmod -R +x "$install_dir/filebrowser"
#=================================================
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
yunohost service add $app --description="Web File Browser" --log="/var/log/$app/$app.log"