1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/librespeed_ynh.git synced 2024-09-03 19:36:23 +02:00

Merge pull request #18 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2024-04-28 09:31:16 +02:00 committed by GitHub
commit 2a2e798b37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 140 additions and 12 deletions

View file

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

View file

@ -9,7 +9,7 @@ It shall NOT be edited by hand.
[![Install LibreSpeed with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=librespeed) [![Install LibreSpeed with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=librespeed)
*[Read this README is other languages.](./ALL_README.md)* *[Read this README in other languages.](./ALL_README.md)*
> *This package allows you to install LibreSpeed quickly and simply on a YunoHost server.* > *This package allows you to install LibreSpeed 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.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
@ -30,7 +30,7 @@ Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, m
- Multiple Points of Test (optional) - Multiple Points of Test (optional)
**Shipped version:** 5.3.0~ynh1 **Shipped version:** 5.3.1~ynh1
**Demo:** <https://librespeed.org> **Demo:** <https://librespeed.org>

62
README_eu.md Normal file
View file

@ -0,0 +1,62 @@
<!--
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
EZ editatu eskuz.
-->
# LibreSpeed YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/librespeed.svg)](https://dash.yunohost.org/appci/app/librespeed) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/librespeed.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/librespeed.maintain.svg)
[![Instalatu LibreSpeed YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=librespeed)
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
> *Pakete honek LibreSpeed YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
## Aurreikuspena
Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more.
### Features
- Download
- Upload
- Ping
- Jitter
- IP Address, ISP, distance from server (optional)
- Telemetry (optional)
- Results sharing (optional)
- Multiple Points of Test (optional)
**Paketatutako bertsioa:** 5.3.1~ynh1
**Demoa:** <https://librespeed.org>
## Pantaila-argazkiak
![LibreSpeed(r)en pantaila-argazkia](./doc/screenshots/screenshot.png)
## Dokumentazioa eta baliabideak
- Aplikazioaren webgune ofiziala: <https://librespeed.org>
- Erabiltzaileen dokumentazio ofiziala: <https://github.com/librespeed/speedtest/wiki>
- Administratzaileen dokumentazio ofiziala: <https://github.com/librespeed/speedtest/wiki>
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/librespeed/speedtest>
- YunoHost Denda: <https://apps.yunohost.org/app/librespeed>
- Eman errore baten berri: <https://github.com/YunoHost-Apps/librespeed_ynh/issues>
## Garatzaileentzako informazioa
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/librespeed_ynh/tree/testing).
`testing` abarra probatzeko, ondorengoa egin:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/librespeed_ynh/tree/testing --debug
edo
sudo yunohost app upgrade librespeed -u https://github.com/YunoHost-Apps/librespeed_ynh/tree/testing --debug
```
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>

View file

@ -28,7 +28,7 @@ Test de vitesse auto-hébergé pour HTML5 et plus. Configuration facile, exemple
- Partage des résultats (facultatif) - Partage des résultats (facultatif)
- Plusieurs points de test (facultatif) - Plusieurs points de test (facultatif)
**Version incluse:** 5.3.0~ynh1 **Version incluse:** 5.3.1~ynh1
**Démo:** <https://librespeed.org> **Démo:** <https://librespeed.org>

View file

@ -30,7 +30,7 @@ Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, m
- Multiple Points of Test (optional) - Multiple Points of Test (optional)
**Versión proporcionada:** 5.3.0~ynh1 **Versión proporcionada:** 5.3.1~ynh1
**Demo:** <https://librespeed.org> **Demo:** <https://librespeed.org>

62
README_zh_Hans.md Normal file
View file

@ -0,0 +1,62 @@
<!--
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
请勿手动编辑。
-->
# YunoHost 的 LibreSpeed
[![集成程度](https://dash.yunohost.org/integration/librespeed.svg)](https://dash.yunohost.org/appci/app/librespeed) ![工作状态](https://ci-apps.yunohost.org/ci/badges/librespeed.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/librespeed.maintain.svg)
[![使用 YunoHost 安装 LibreSpeed](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=librespeed)
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 LibreSpeed。*
> *如果您还没有 YunoHost请参阅[指南](https://yunohost.org/install)了解如何安装它。*
## 概况
Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more.
### Features
- Download
- Upload
- Ping
- Jitter
- IP Address, ISP, distance from server (optional)
- Telemetry (optional)
- Results sharing (optional)
- Multiple Points of Test (optional)
**分发版本:** 5.3.1~ynh1
**演示:** <https://librespeed.org>
## 截图
![LibreSpeed 的截图](./doc/screenshots/screenshot.png)
## 文档与资源
- 官方应用网站: <https://librespeed.org>
- 官方用户文档: <https://github.com/librespeed/speedtest/wiki>
- 官方管理文档: <https://github.com/librespeed/speedtest/wiki>
- 上游应用代码库: <https://github.com/librespeed/speedtest>
- YunoHost 商店: <https://apps.yunohost.org/app/librespeed>
- 报告 bug <https://github.com/YunoHost-Apps/librespeed_ynh/issues>
## 开发者信息
请向 [`testing` 分支](https://github.com/YunoHost-Apps/librespeed_ynh/tree/testing) 发送拉取请求。
如要尝试 `testing` 分支,请这样操作:
```bash
sudo yunohost app install https://github.com/YunoHost-Apps/librespeed_ynh/tree/testing --debug
sudo yunohost app upgrade librespeed -u https://github.com/YunoHost-Apps/librespeed_ynh/tree/testing --debug
```
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>

View file

@ -5,7 +5,7 @@ name = "LibreSpeed"
description.en = "Very lightweight Speedtest" description.en = "Very lightweight Speedtest"
description.fr = "Test de vitesse de connexion très léger" description.fr = "Test de vitesse de connexion très léger"
version = "5.3.0~ynh1" version = "5.3.1~ynh1"
maintainers = ["Augustin Rungeard"] maintainers = ["Augustin Rungeard"]
@ -21,8 +21,11 @@ code = "https://github.com/librespeed/speedtest"
yunohost = ">= 11.2" yunohost = ">= 11.2"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = false ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "50M" ram.build = "50M"
ram.runtime = "50M" ram.runtime = "50M"
@ -54,8 +57,8 @@ ram.runtime = "50M"
[resources] [resources]
[resources.sources.main] [resources.sources.main]
url = "https://github.com/librespeed/speedtest/archive/refs/tags/5.3.0.tar.gz" url = "https://github.com/librespeed/speedtest/archive/refs/tags/5.3.1.tar.gz"
sha256 = "c43a1682caffdb2102eee89e8440d426cd627a79d0106458105be37c6064f935" sha256 = "f43efe474998a4cb337f82d8270ee7f5e60566d310155fd51caf20bfd253b5c1"
autoupdate.strategy = "latest_github_tag" autoupdate.strategy = "latest_github_tag"
[resources.system_user] [resources.system_user]

View file

@ -40,11 +40,11 @@ ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name
#================================================= #=================================================
ynh_script_progression --message="Configuring $app..." --weight=3 ynh_script_progression --message="Configuring $app..." --weight=3
ynh_add_config --template="../conf/telemetry_settings.php" --destination="$install_dir/results/telemetry_settings.php" ynh_add_config --template="telemetry_settings.php" --destination="$install_dir/results/telemetry_settings.php"
chmod 650 "$install_dir/results/telemetry_settings.php" chmod 650 "$install_dir/results/telemetry_settings.php"
chown $app:www-data "$install_dir/results/telemetry_settings.php" chown $app:www-data "$install_dir/results/telemetry_settings.php"
ynh_add_config --template="../conf/example-singleServer-full.html" --destination="$install_dir/index.html" ynh_add_config --template="example-singleServer-full.html" --destination="$install_dir/index.html"
chmod 650 "$install_dir/index.html" chmod 650 "$install_dir/index.html"
chown $app:www-data "$install_dir/index.html" chown $app:www-data "$install_dir/index.html"

View file

@ -51,11 +51,11 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Reconfiguring LibreSpeed..." ynh_script_progression --message="Reconfiguring LibreSpeed..."
ynh_add_config --template="../conf/telemetry_settings.php" --destination="$install_dir/results/telemetry_settings.php" ynh_add_config --template="telemetry_settings.php" --destination="$install_dir/results/telemetry_settings.php"
chmod 650 "$install_dir/results/telemetry_settings.php" chmod 650 "$install_dir/results/telemetry_settings.php"
chown $app:www-data "$install_dir/results/telemetry_settings.php" chown $app:www-data "$install_dir/results/telemetry_settings.php"
ynh_add_config --template="../conf/example-singleServer-full.html" --destination="$install_dir/index.html" ynh_add_config --template="example-singleServer-full.html" --destination="$install_dir/index.html"
chmod 650 "$install_dir/index.html" chmod 650 "$install_dir/index.html"
chown $app:www-data "$install_dir/index.html" chown $app:www-data "$install_dir/index.html"
fi fi