From 76521c140881eef80ae4e7d3adff440305fc8b6d Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 14:48:59 +0100 Subject: [PATCH 01/16] Delete admin msg on node_modules backup --- doc/ADMIN.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 4aaa1ae..80678da 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -1,3 +1,2 @@ -- node_modules folder is backed up and shouldn't be (600Mo...) - This app needs a manual post-install - We could pre-configure mail notifications with YunoHost mail server as an improvement. See comments in file to try to do it with Curl and WebSockets or Sqlite. From 0bc9193e1f462bb86b8a5528d6aa116badb76d56 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 14:54:30 +0100 Subject: [PATCH 02/16] also re-run frontend install on upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 3d99d82..2a829c5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,6 +67,7 @@ ynh_script_progression --message="Upgrading $app dependencies..." --weight=7 pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist popd #================================================= From 9eea4a6f1c6717e4d0afc6a53c44f47094ace81d Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 14:54:49 +0100 Subject: [PATCH 03/16] `npm cache clean -f` --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 0785a12..f4a9a1e 100755 --- a/scripts/install +++ b/scripts/install @@ -55,6 +55,7 @@ pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm cache clean -f popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2a829c5..93b4459 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,6 +68,7 @@ pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm cache clean -f popd #================================================= From 63b214b8d03a11e410fa4474b7dc84685c542a43 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 14:56:23 +0100 Subject: [PATCH 04/16] don't reinstall dependencies on restore --- scripts/restore | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/restore b/scripts/restore index 95429e0..4dd940b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -20,14 +20,6 @@ ynh_restore_file --origin_path="$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" -#================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=1 - -# Define and install dependencies -ynh_install_nodejs --nodejs_version=$nodejs_version - #================================================= # RESTORE SYSTEM CONFIGURATIONS #================================================= From e6ff7a9433006e355dfe586d09b36a72d392ed77 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 14:58:49 +0100 Subject: [PATCH 05/16] Delete `$install_dir/.cache` present in older versions --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 93b4459..de22843 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -69,6 +69,8 @@ pushd "$install_dir" ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm cache clean -f + # Residue of old versions caching + ynh_exec_warn_less ynh_exec_as $app rm -rf .cache popd #================================================= From 7e2eb781a80e1ee3b28492347ee018114297b833 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 15:13:40 +0100 Subject: [PATCH 06/16] `--omit=dev` rather than `--production` --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index de22843..fae4721 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,7 +66,7 @@ ynh_script_progression --message="Upgrading $app dependencies..." --weight=7 pushd "$install_dir" ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --omit=dev ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm cache clean -f # Residue of old versions caching From 6060c1af5598a0a032c5a04cc944e7063c813f92 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 15:19:35 +0100 Subject: [PATCH 07/16] Revert "`npm cache clean -f`" This reverts commit 9eea4a6f1c6717e4d0afc6a53c44f47094ace81d. --- scripts/install | 1 - scripts/upgrade | 3 --- 2 files changed, 4 deletions(-) diff --git a/scripts/install b/scripts/install index f4a9a1e..0785a12 100755 --- a/scripts/install +++ b/scripts/install @@ -55,7 +55,6 @@ pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm cache clean -f popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fae4721..73e3f39 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,9 +68,6 @@ pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --omit=dev ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm cache clean -f - # Residue of old versions caching - ynh_exec_warn_less ynh_exec_as $app rm -rf .cache popd #================================================= From dc4b2f4edafbecb6b5d9377ec6e4e24b939b46b1 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 14:58:49 +0100 Subject: [PATCH 08/16] Delete `$install_dir/.cache` present in older versions --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 73e3f39..97bfffa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,6 +68,8 @@ pushd "$install_dir" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --omit=dev ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist + # Residue of old versions caching + ynh_exec_warn_less ynh_exec_as $app rm -rf .cache popd #================================================= From 3d5512361f8b08c86c368537d62a6c34f4b6be02 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 23 Jan 2024 15:38:49 +0100 Subject: [PATCH 09/16] Remove `--is_big` flag so that it actually backs up the app --- scripts/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index 5250294..02dfff2 100755 --- a/scripts/backup +++ b/scripts/backup @@ -19,7 +19,7 @@ ynh_print_info --message="Declaring files to be backed up..." # BACKUP THE APP MAIN DIR #================================================= -ynh_backup --src_path="$install_dir" --is_big +ynh_backup --src_path="$install_dir" #================================================= # BACKUP THE NGINX CONFIGURATION From 7534ce35cf4fee80feb9832778efa3092d4bb6fa Mon Sep 17 00:00:00 2001 From: Hadrien <26697460+ketsapiwiq@users.noreply.github.com> Date: Wed, 24 Jan 2024 12:52:21 +0100 Subject: [PATCH 10/16] `ynh_secure_remove` Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 97bfffa..7fd4897 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -69,7 +69,7 @@ pushd "$install_dir" ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --omit=dev ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist # Residue of old versions caching - ynh_exec_warn_less ynh_exec_as $app rm -rf .cache + ynh_secure_remove $install_dir/.cache popd #================================================= From 0305d14608795b76376bb830542f647118ee8ee4 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Wed, 24 Jan 2024 12:53:53 +0100 Subject: [PATCH 11/16] Revert "don't reinstall dependencies on restore" This reverts commit 63b214b8d03a11e410fa4474b7dc84685c542a43. --- scripts/restore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/restore b/scripts/restore index 4dd940b..95429e0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -20,6 +20,14 @@ ynh_restore_file --origin_path="$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=1 + +# Define and install dependencies +ynh_install_nodejs --nodejs_version=$nodejs_version + #================================================= # RESTORE SYSTEM CONFIGURATIONS #================================================= From 0bd512160662b179f30e197307e3f162e2bfbde4 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Wed, 24 Jan 2024 12:55:00 +0100 Subject: [PATCH 12/16] omit=dev also in install script --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 0785a12..f404ce4 100755 --- a/scripts/install +++ b/scripts/install @@ -52,9 +52,9 @@ yunohost service add $app --description="Monitoring tool" --log="/var/log/$app/$ ynh_script_progression --message="Installing $app dependencies..." --weight=7 pushd "$install_dir" - ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --production - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist +ynh_use_nodejs +ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install --omit=dev +ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist popd #================================================= From 9ea9562536b272e162263fb9443f629a480d7d33 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 19 Apr 2024 03:48:36 +0200 Subject: [PATCH 13/16] Upgrade to v1.23.12 https://github.com/louislam/uptime-kuma/releases/tag/1.23.12 --- manifest.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.toml b/manifest.toml index 9a1a5f4..f8c8eaa 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Uptime Kuma" description.en = "Monitoring tool like Uptime-Robot" description.fr = "Outil de surveillance similaire à Uptime-Robot" -version = "1.23.11~ynh1" +version = "1.23.12~ynh1" maintainers = ["ketsapiwiq", "eric_G"] @@ -39,14 +39,14 @@ ram.runtime = "50M" [resources] [resources.sources] [resources.sources.dist] - url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.11/dist.tar.gz" - sha256 = "6e98ef8b7f62565ebff8cb48c3a23012b9d8044819d4f8980f99bc37bf2a468d" + url = "https://github.com/louislam/uptime-kuma/releases/download/1.23.12/dist.tar.gz" + sha256 = "049bab4b7ef11edecd30365f23036737737cfb1862eaf8f653229f7708094e2f" autoupdate.strategy = "latest_github_release" autoupdate.asset = "dist.tar.gz" [resources.sources.main] - url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.11.tar.gz" - sha256 = "7ae1f6ab320cb22436972554fce95779e16382c00adebbc5c9be33f3298593c4" + url = "https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.12.tar.gz" + sha256 = "c456f274f100898225f8e50d49eadb9679fc34a4c91d0235121031eb62b70148" autoupdate.strategy = "latest_github_release" autoupdate.asset = "tarball" From 658da84b410dacb8e367781cc1acf4d3c3de875d Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 19 Apr 2024 01:48:38 +0000 Subject: [PATCH 14/16] Auto-update READMEs --- ALL_README.md | 7 ++++++ README.md | 28 +++++++++++----------- README_eu.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++ README_fr.md | 32 ++++++++++++------------- README_gl.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++ README_zh_Hans.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 217 insertions(+), 30 deletions(-) create mode 100644 ALL_README.md create mode 100644 README_eu.md create mode 100644 README_gl.md create mode 100644 README_zh_Hans.md diff --git a/ALL_README.md b/ALL_README.md new file mode 100644 index 0000000..a01b345 --- /dev/null +++ b/ALL_README.md @@ -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) diff --git a/README.md b/README.md index e63c1b1..e24e2b8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -9,10 +9,10 @@ It shall NOT be edited by hand. [![Install Uptime Kuma with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=uptime-kuma) -*[Lire ce readme en français.](./README_fr.md)* +*[Read this README in other languages.](./ALL_README.md)* -> *This package allows you to install Uptime Kuma 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 Uptime Kuma 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 @@ -29,9 +29,9 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". - Certificate Info -**Shipped version:** 1.23.11~ynh1 +**Shipped version:** 1.23.12~ynh1 -**Demo:** https://demo.uptime.kuma.pet +**Demo:** ## Screenshots @@ -39,19 +39,19 @@ Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". ## Documentation and resources -* Official app website: -* Official user documentation: -* Upstream app code repository: -* YunoHost Store: -* Report a bug: +- Official app website: +- Official user documentation: +- Upstream app code repository: +- YunoHost Store: +- Report a bug: ## Developer info -Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing). +Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing). -To try the testing branch, please proceed like that. +To try the `testing` branch, please proceed like that: -``` bash +```bash sudo yunohost app install https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug or sudo yunohost app upgrade uptime-kuma -u https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug diff --git a/README_eu.md b/README_eu.md new file mode 100644 index 0000000..7818589 --- /dev/null +++ b/README_eu.md @@ -0,0 +1,60 @@ + + +# Uptime Kuma YunoHost-erako + +[![Integrazio maila](https://dash.yunohost.org/integration/uptime-kuma.svg)](https://dash.yunohost.org/appci/app/uptime-kuma) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/uptime-kuma.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/uptime-kuma.maintain.svg) + +[![Instalatu Uptime Kuma YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=uptime-kuma) + +*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)* + +> *Pakete honek Uptime Kuma YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.* +> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.* + +## Aurreikuspena + +Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". + +### Features + +- Monitoring uptime for HTTP(s) / TCP / Ping / DNS Record / Push. +- Notifications via Telegram, Discord, Gotify, Slack, Pushover, Email (SMTP)... +- 20 second intervals +- Multi Languages +- Simple Status Page +- Ping Chart +- Certificate Info + + +**Paketatutako bertsioa:** 1.23.12~ynh1 + +**Demoa:** + +## Pantaila-argazkiak + +![Uptime Kuma(r)en pantaila-argazkia](./doc/screenshots/example.jpg) + +## Dokumentazioa eta baliabideak + +- Aplikazioaren webgune ofiziala: +- Erabiltzaileen dokumentazio ofiziala: +- Jatorrizko aplikazioaren kode-gordailua: +- YunoHost Denda: +- Eman errore baten berri: + +## Garatzaileentzako informazioa + +Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing). + +`testing` abarra probatzeko, ondorengoa egin: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug +edo +sudo yunohost app upgrade uptime-kuma -u https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug +``` + +**Informazio gehiago aplikazioaren paketatzeari buruz:** diff --git a/README_fr.md b/README_fr.md index 1622322..e7e5cd5 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,6 +1,6 @@ # Uptime Kuma pour YunoHost @@ -9,10 +9,10 @@ It shall NOT be edited by hand. [![Installer Uptime Kuma avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=uptime-kuma) -*[Read this readme in english.](./README.md)* +*[Lire le README dans d'autres langues.](./ALL_README.md)* -> *Ce package vous permet d’installer Uptime Kuma 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 Uptime Kuma rapidement et simplement sur un serveur YunoHost.* +> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.* ## Vue d’ensemble @@ -28,9 +28,9 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot » - Graphique Ping - Informations sur le certificat -**Version incluse :** 1.23.11~ynh1 +**Version incluse :** 1.23.12~ynh1 -**Démo :** https://demo.uptime.kuma.pet +**Démo :** ## Captures d’écran @@ -38,22 +38,22 @@ Uptime Kuma est un outil de surveillance auto-hébergé comme « Uptime Robot » ## Documentations et ressources -* Site officiel de l’app : -* Documentation officielle utilisateur : -* Dépôt de code officiel de l’app : -* YunoHost Store: -* Signaler un bug : +- Site officiel de l’app : +- Documentation officielle utilisateur : +- Dépôt de code officiel de l’app : +- YunoHost Store : +- Signaler un bug : ## Informations pour les développeurs -Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing). +Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing). -Pour essayer la branche testing, procédez comme suit. +Pour essayer la branche `testing`, procédez comme suit : -``` bash +```bash sudo yunohost app install https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug ou sudo yunohost app upgrade uptime-kuma -u https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug ``` -**Plus d’infos sur le packaging d’applications :** \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** diff --git a/README_gl.md b/README_gl.md new file mode 100644 index 0000000..03ad1d6 --- /dev/null +++ b/README_gl.md @@ -0,0 +1,60 @@ + + +# Uptime Kuma para YunoHost + +[![Nivel de integración](https://dash.yunohost.org/integration/uptime-kuma.svg)](https://dash.yunohost.org/appci/app/uptime-kuma) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/uptime-kuma.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/uptime-kuma.maintain.svg) + +[![Instalar Uptime Kuma con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=uptime-kuma) + +*[Le este README en outros idiomas.](./ALL_README.md)* + +> *Este paquete permíteche instalar Uptime Kuma 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 + +Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". + +### Features + +- Monitoring uptime for HTTP(s) / TCP / Ping / DNS Record / Push. +- Notifications via Telegram, Discord, Gotify, Slack, Pushover, Email (SMTP)... +- 20 second intervals +- Multi Languages +- Simple Status Page +- Ping Chart +- Certificate Info + + +**Versión proporcionada:** 1.23.12~ynh1 + +**Demo:** + +## Capturas de pantalla + +![Captura de pantalla de Uptime Kuma](./doc/screenshots/example.jpg) + +## Documentación e recursos + +- Web oficial da app: +- Documentación oficial para usuarias: +- Repositorio de orixe do código: +- Tenda YunoHost: +- Informar dun problema: + +## Info de desenvolvemento + +Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing). + +Para probar a rama `testing`, procede deste xeito: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug +ou +sudo yunohost app upgrade uptime-kuma -u https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug +``` + +**Máis info sobre o empaquetado da app:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md new file mode 100644 index 0000000..c99ca1d --- /dev/null +++ b/README_zh_Hans.md @@ -0,0 +1,60 @@ + + +# YunoHost 的 Uptime Kuma + +[![集成程度](https://dash.yunohost.org/integration/uptime-kuma.svg)](https://dash.yunohost.org/appci/app/uptime-kuma) ![工作状态](https://ci-apps.yunohost.org/ci/badges/uptime-kuma.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/uptime-kuma.maintain.svg) + +[![使用 YunoHost 安装 Uptime Kuma](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=uptime-kuma) + +*[阅读此 README 的其它语言版本。](./ALL_README.md)* + +> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Uptime Kuma。* +> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。* + +## 概况 + +Uptime Kuma is a self-hosted monitoring tool like "Uptime Robot". + +### Features + +- Monitoring uptime for HTTP(s) / TCP / Ping / DNS Record / Push. +- Notifications via Telegram, Discord, Gotify, Slack, Pushover, Email (SMTP)... +- 20 second intervals +- Multi Languages +- Simple Status Page +- Ping Chart +- Certificate Info + + +**分发版本:** 1.23.12~ynh1 + +**演示:** + +## 截图 + +![Uptime Kuma 的截图](./doc/screenshots/example.jpg) + +## 文档与资源 + +- 官方应用网站: +- 官方用户文档: +- 上游应用代码库: +- YunoHost 商店: +- 报告 bug: + +## 开发者信息 + +请向 [`testing` 分支](https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing) 发送拉取请求。 + +如要尝试 `testing` 分支,请这样操作: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug +或 +sudo yunohost app upgrade uptime-kuma -u https://github.com/YunoHost-Apps/uptime-kuma_ynh/tree/testing --debug +``` + +**有关应用打包的更多信息:** From a5d6c50227b136cbd7122a207ad5dc6f39650f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 19 Apr 2024 12:13:38 +0200 Subject: [PATCH 15/16] Update upgrade --- scripts/upgrade | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7fd4897..18cf420 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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,16 +21,13 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" - # Download, check integrity, uncompress and patch the source from dist.src - ynh_setup_source --dest_dir="$install_dir/dist" --source_id="dist" -fi +# Download, check integrity, uncompress and patch the source from dist.src +ynh_setup_source --dest_dir="$install_dir/dist" --source_id="dist" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" From da71a1b741f53fe307d8a0b0bcb36413d2459a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 19 Apr 2024 12:15:55 +0200 Subject: [PATCH 16/16] Update tests.toml --- tests.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.toml b/tests.toml index 6aa3b78..c9784e7 100644 --- a/tests.toml +++ b/tests.toml @@ -6,4 +6,4 @@ test_format = 1.0 # Commits to test upgrade from # ------------------------------- - test_upgrade_from.484a6b12681415f6cc031ed3279795ce1a8b29cc.name = "Upgrade from 1.20.2" \ No newline at end of file + test_upgrade_from.540526b8571a336beb0e8402d1b24ac86bd34d2d.name = "Upgrade from 1.23.11" \ No newline at end of file