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

Merge pull request #40 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-04-02 23:51:40 +02:00 committed by GitHub
commit d692efd98d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 75 additions and 41 deletions

View file

@ -1,6 +1,6 @@
# 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)
- [Leggi il “README” in italiano](README_it.md)

View file

@ -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)
*[Read this README is other languages.](./ALL_README.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.*
## 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.28.0~ynh1
## Screenshots

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.28.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

@ -16,10 +16,9 @@ Il NE doit PAS être modifié à la main.
## 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.28.0~ynh1
## Captures décran

View file

@ -16,10 +16,10 @@ NON debe editarse manualmente.
## 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.
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.26.0~ynh1
**Versión proporcionada:** 2.28.0~ynh1
## Capturas de pantalla

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.28.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.28.0/linux-amd64-filebrowser.tar.gz"
amd64.sha256 = "18d45288498e7d4a3e23e32f105cbe65cadc92d6e4dc334647dfc496b2d4ddfc"
arm64.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.28.0/linux-arm64-filebrowser.tar.gz"
arm64.sha256 = "f936ca4784d9b36927f7ee677f75045f55ff9e7e8e1943f78a0d35b187ef314c"
i386.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.28.0/linux-386-filebrowser.tar.gz"
i386.sha256 = "ebb8bc66b9a005792fc94e592d2279dda236c419cf1e54a8343960687f3d9e71"
armhf.url = "https://github.com/filebrowser/filebrowser/releases/download/v2.28.0/linux-armv7-filebrowser.tar.gz"
armhf.sha256 = "3163d68fae3ab17d7ff6d8aa52bb45b96de125bdefe47a1067e30afd6d18fdfb"
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,9 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=4
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" --keep="settings.json"
fi
ynh_setup_source --dest_dir="$install_dir" --keep="settings.json"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -45,10 +34,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"