1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

Merge remote-tracking branch 'origin/testing' into pr/47

This commit is contained in:
Éric Gaspar 2024-03-02 20:47:44 +01:00
commit f22c42876a
5 changed files with 30 additions and 27 deletions

View file

@ -17,7 +17,13 @@
current_version=$(cat manifest.json | jq -j '.version|split("~")[0]') current_version=$(cat manifest.json | jq -j '.version|split("~")[0]')
repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]') repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]')
# Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions) # Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions)
version=$(curl --silent "https://api.github.com/repos/$repo/tags?page=2" | jq -r '.[] | select( .name | contains("rc") or contains("beta") or contains("alpha") or startswith("6") | not ) | .name' | sort -V | tail -1) i=1
version=$(curl --silent "https://api.github.com/repos/$repo/tags?page=$i" | jq -r '.[] | select( .name | contains("rc") or contains("beta") or contains("alpha") or startswith("6") or startswith("7") | not ) | .name' | sort -V | tail -1)
while [ -z $version ] ; do
sleep 10
i=$(($i + 1))
version=$(curl --silent "https://api.github.com/repos/$repo/tags?page=$i" | jq -r '.[] | select( .name | contains("rc") or contains("beta") or contains("alpha") or startswith("6") or startswith("7") | not ) | .name' | sort -V | tail -1)
done
# Later down the script, we assume the version has only digits and dots # Later down the script, we assume the version has only digits and dots
# Sometimes the release name starts with a "v", so let's filter it out. # Sometimes the release name starts with a "v", so let's filter it out.

View file

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Fetch the source code - name: Fetch the source code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Run the updater script - name: Run the updater script
@ -33,7 +33,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
id: cpr id: cpr
if: ${{ env.PROCEED == 'true' }} if: ${{ env.PROCEED == 'true' }}
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update to version ${{ env.VERSION }} commit-message: Update to version ${{ env.VERSION }}

View file

@ -6,6 +6,7 @@ It shall NOT be edited by hand.
# Zabbix for YunoHost # Zabbix for YunoHost
[![Integration level](https://dash.yunohost.org/integration/zabbix.svg)](https://dash.yunohost.org/appci/app/zabbix) ![Working status](https://ci-apps.yunohost.org/ci/badges/zabbix.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/zabbix.maintain.svg) [![Integration level](https://dash.yunohost.org/integration/zabbix.svg)](https://dash.yunohost.org/appci/app/zabbix) ![Working status](https://ci-apps.yunohost.org/ci/badges/zabbix.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/zabbix.maintain.svg)
[![Install Zabbix with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=zabbix) [![Install Zabbix with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=zabbix)
*[Lire ce readme en français.](./README_fr.md)* *[Lire ce readme en français.](./README_fr.md)*
@ -17,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
A monitoring tool for diverse IT components, including networks, servers, VMs and cloud services. A monitoring tool for diverse IT components, including networks, servers, VMs and cloud services.
**Shipped version:** 5.0.20~ynh2 **Shipped version:** 5.0.41~ynh1
## Screenshots ## Screenshots
@ -39,7 +40,7 @@ A monitoring tool for diverse IT components, including networks, servers, VMs an
* Official app website: <https://www.zabbix.com> * Official app website: <https://www.zabbix.com>
* Official admin documentation: <https://www.zabbix.com/manuals> * Official admin documentation: <https://www.zabbix.com/manuals>
* Upstream app code repository: <https://github.com/zabbix/zabbix> * Upstream app code repository: <https://github.com/zabbix/zabbix>
* YunoHost documentation for this app: <https://yunohost.org/app_zabbix> * YunoHost Store: <https://apps.yunohost.org/app/zabbix>
* Report a bug: <https://github.com/YunoHost-Apps/zabbix_ynh/issues> * Report a bug: <https://github.com/YunoHost-Apps/zabbix_ynh/issues>
## Developer info ## Developer info

View file

@ -5,24 +5,25 @@ It shall NOT be edited by hand.
# Zabbix pour YunoHost # Zabbix pour YunoHost
[![Niveau d'intégration](https://dash.yunohost.org/integration/zabbix.svg)](https://dash.yunohost.org/appci/app/zabbix) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/zabbix.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/zabbix.maintain.svg) [![Niveau dintégration](https://dash.yunohost.org/integration/zabbix.svg)](https://dash.yunohost.org/appci/app/zabbix) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/zabbix.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/zabbix.maintain.svg)
[![Installer Zabbix avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=zabbix) [![Installer Zabbix avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=zabbix)
*[Read this readme in english.](./README.md)* *[Read this readme in english.](./README.md)*
> *Ce package vous permet d'installer Zabbix rapidement et simplement sur un serveur YunoHost. > *Ce package vous permet dinstaller Zabbix 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.* Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
## Vue d'ensemble ## Vue densemble
Un outil de surveillance pour divers composants informatiques, notamment les réseaux, les serveurs, les machines virtuelles et les services en nuage. Un outil de surveillance pour divers composants informatiques, notamment les réseaux, les serveurs, les machines virtuelles et les services en nuage.
**Version incluse :** 5.0.20~ynh2 **Version incluse :** 5.0.41~ynh1
## Captures d'écran ## Captures décran
![Capture d'écran de Zabbix](./doc/screenshots/screenshot1.png) ![Capture décran de Zabbix](./doc/screenshots/screenshot1.png)
## Avertissements / informations importantes ## Avertissements / informations importantes
@ -36,10 +37,10 @@ Un outil de surveillance pour divers composants informatiques, notamment les ré
* Un modèle YunoHost est importé et lié à l'hôte "Zabbix-server" (127.0.0.1) pour la surveillance de base de YunoHost. * Un modèle YunoHost est importé et lié à l'hôte "Zabbix-server" (127.0.0.1) pour la surveillance de base de YunoHost.
## Documentations et ressources ## Documentations et ressources
* Site officiel de l'app : <https://www.zabbix.com> * Site officiel de lapp : <https://www.zabbix.com>
* Documentation officielle de l'admin : <https://www.zabbix.com/manuals> * Documentation officielle de ladmin : <https://www.zabbix.com/manuals>
* Dépôt de code officiel de l'app : <https://github.com/zabbix/zabbix> * Dépôt de code officiel de lapp : <https://github.com/zabbix/zabbix>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_zabbix> * YunoHost Store: <https://apps.yunohost.org/app/zabbix>
* Signaler un bug : <https://github.com/YunoHost-Apps/zabbix_ynh/issues> * Signaler un bug : <https://github.com/YunoHost-Apps/zabbix_ynh/issues>
## Informations pour les développeurs ## Informations pour les développeurs
@ -54,4 +55,4 @@ ou
sudo yunohost app upgrade zabbix -u https://github.com/YunoHost-Apps/zabbix_ynh/tree/testing --debug sudo yunohost app upgrade zabbix -u https://github.com/YunoHost-Apps/zabbix_ynh/tree/testing --debug
``` ```
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps> **Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>

View file

@ -15,20 +15,15 @@
setup_private=1 setup_private=1
setup_public=1 setup_public=1
upgrade=1 upgrade=1
# 4.4~ynh1 # 5.0.20~ynh2
upgrade=1 from_commit=5cd502c98fdf4731938503541cf64a59aa43eda7 upgrade=1 from_commit=8f8961c239f890069c867e40005db98465add0c9
# 4.4~ynh3
upgrade=1 from_commit=9c1395710db75a5af897edc6ce6bcc8b1fc2d167
backup_restore=1 backup_restore=1
multi_instance=0 multi_instance=0
port_already_use=1
change_url=1 change_url=1
;;; Options ;;; Options
Email= Email=
Notification=none Notification=none
;;; Upgrade options ;;; Upgrade options
; commit=5cd502c98fdf4731938503541cf64a59aa43eda7
name=4.4~ynh1.
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=PORT& manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=PORT&
; commit=9c1395710db75a5af897edc6ce6bcc8b1fc2d167 ; commit=8f8961c239f890069c867e40005db98465add0c9
name=4.4~ynh3 name=5.0.20~ynh2