1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/netdata_ynh.git synced 2024-09-03 19:46:33 +02:00

Merge pull request #156 from YunoHost-Apps/testing

Testing
This commit is contained in:
Kayou 2024-07-03 17:42:03 +02:00 committed by GitHub
commit 0205ab3d4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 66 additions and 35 deletions

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# NetData for YunoHost
[![Integration level](https://dash.yunohost.org/integration/netdata.svg)](https://dash.yunohost.org/appci/app/netdata) ![Working status](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Integration level](https://dash.yunohost.org/integration/netdata.svg)](https://ci-apps.yunohost.org/ci/apps/netdata/) ![Working status](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Install NetData with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=netdata)
@ -26,7 +26,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
disrupting their core function._
**Shipped version:** 1.44.3~ynh1
**Shipped version:** 1.46.1~ynh1
**Demo:** <https://learn.netdata.cloud/docs/agent/demo-sites/>
## Documentation and resources

View file

@ -5,7 +5,7 @@ No se debe editar a mano.
# NetData para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/netdata.svg)](https://dash.yunohost.org/appci/app/netdata) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/netdata.svg)](https://ci-apps.yunohost.org/ci/apps/netdata/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Instalar NetData con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=netdata)
@ -26,7 +26,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
disrupting their core function._
**Versión actual:** 1.44.3~ynh1
**Versión actual:** 1.46.1~ynh1
**Demo:** <https://learn.netdata.cloud/docs/agent/demo-sites/>
## Documentaciones y recursos

View file

@ -5,7 +5,7 @@ EZ editatu eskuz.
# NetData YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/netdata.svg)](https://dash.yunohost.org/appci/app/netdata) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Integrazio maila](https://dash.yunohost.org/integration/netdata.svg)](https://ci-apps.yunohost.org/ci/apps/netdata/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Instalatu NetData YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=netdata)
@ -26,7 +26,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
disrupting their core function._
**Paketatutako bertsioa:** 1.44.3~ynh1
**Paketatutako bertsioa:** 1.46.1~ynh1
**Demoa:** <https://learn.netdata.cloud/docs/agent/demo-sites/>
## Dokumentazioa eta baliabideak

View file

@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
# NetData pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/netdata.svg)](https://dash.yunohost.org/appci/app/netdata) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Niveau dintégration](https://dash.yunohost.org/integration/netdata.svg)](https://ci-apps.yunohost.org/ci/apps/netdata/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Installer NetData avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=netdata)
@ -26,7 +26,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
disrupting their core function._
**Version incluse:** 1.44.3~ynh1
**Version incluse:** 1.46.1~ynh1
**Démo:** <https://learn.netdata.cloud/docs/agent/demo-sites/>
## Documentations et ressources

View file

@ -5,7 +5,7 @@ NON debe editarse manualmente.
# NetData para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/netdata.svg)](https://dash.yunohost.org/appci/app/netdata) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/netdata.svg)](https://ci-apps.yunohost.org/ci/apps/netdata/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![Instalar NetData con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=netdata)
@ -26,7 +26,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
disrupting their core function._
**Versión proporcionada:** 1.44.3~ynh1
**Versión proporcionada:** 1.46.1~ynh1
**Demo:** <https://learn.netdata.cloud/docs/agent/demo-sites/>
## Documentación e recursos

View file

@ -5,7 +5,7 @@
# YunoHost 上的 NetData
[![集成程度](https://dash.yunohost.org/integration/netdata.svg)](https://dash.yunohost.org/appci/app/netdata) ![工作状态](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![集成程度](https://dash.yunohost.org/integration/netdata.svg)](https://ci-apps.yunohost.org/ci/apps/netdata/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/netdata.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/netdata.maintain.svg)
[![使用 YunoHost 安装 NetData](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=netdata)
@ -26,7 +26,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
disrupting their core function._
**分发版本:** 1.44.3~ynh1
**分发版本:** 1.46.1~ynh1
**演示:** <https://learn.netdata.cloud/docs/agent/demo-sites/>
## 文档与资源

View file

@ -7,7 +7,7 @@ name = "NetData"
description.en = "Real-time performance and health monitoring"
description.fr = "Monitoring serveur en temps reel"
version = "1.44.3~ynh1"
version = "1.46.1~ynh1"
maintainers = ["JimboJoe"]
@ -49,10 +49,19 @@ ram.runtime = "50M"
[resources.sources]
[resources.sources.main]
url = "https://github.com/netdata/netdata/releases/download/v1.44.3/netdata-v1.44.3.tar.gz"
sha256 = "50df30a9aaf60d550eb8e607230d982827e04194f7df3eba0e83ff7919270ad2"
url = "https://github.com/netdata/netdata/releases/download/v1.46.1/netdata-v1.46.1.tar.gz"
sha256 = "e909a109e1d60bf9416a70f2bb0bbf668d75c75d7ca9ce0b59d88fc634266114"
autoupdate.strategy = "latest_github_release"
autoupdate.asset = "^netdata-v([0-9.]*)tar.gz$"
[resources.sources.go]
amd64.url = "https://go.dev/dl/go1.22.4.linux-amd64.tar.gz"
amd64.sha256 = "ba79d4526102575196273416239cca418a651e049c2b099f3159db85e7bade7d"
i386.url = "https://go.dev/dl/go1.22.4.linux-386.tar.gz"
i386.sha256 = "47a2a8d249a91eb8605c33bceec63aedda0441a43eac47b4721e3975ff916cec"
arm64.url = "https://go.dev/dl/go1.22.4.linux-arm64.tar.gz"
arm64.sha256 = "a8e177c354d2e4a1b61020aca3562e27ea3e8f8247eca3170e3fa1e0c2f9e771"
armhf.url = "https://go.dev/dl/go1.21.5.linux-armv6l.tar.gz"
armhf.sha256 = "837f4bf4e22fcdf920ffeaa4abf3d02d1314e03725431065f4d44c46a01b42fe"
[resources.system_user]
@ -62,4 +71,4 @@ ram.runtime = "50M"
main.url = "/"
[resources.apt]
packages = "zlib1g-dev, uuid-dev, libmnl-dev, gcc, make, git, autoconf, autoconf-archive, autogen, automake, pkg-config, curl, jq, nodejs, python3-mysqldb, libipmimonitoring-dev, acl, python3-pymongo, libuv1-dev, liblz4-dev, libjudy-dev, libssl-dev, cmake"
packages = "cmake, ninja-build, pkg-config, bison, flex, gcc, g++, git, mariadb-server, libelf-dev, libssl-dev, liblz4-dev, zlib1g-dev, uuid-dev, libyaml-dev, libjson-c-dev, libuv1-dev"

View file

@ -15,22 +15,29 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Setting up source files..." --weight=11
# Download, check integrity, uncompress and patch the source from app.src
NETDATA_TMPDIR=$(mktemp -d)
NETDATA_TMPDIR="$install_dir/netdata_install"
mkdir -p $NETDATA_TMPDIR
ynh_setup_source --dest_dir="$NETDATA_TMPDIR"
GO_TMPDIR="$install_dir/go_install"
mkdir -p $GO_TMPDIR
ynh_setup_source --source_id="go" --dest_dir="$GO_TMPDIR"
#=================================================
# BUILD
#=================================================
ynh_script_progression --message="Executing Netdata installer..." --weight=10
# create a temporary file for the log
tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
export PATH="$GO_TMPDIR/bin:$PATH"
export GOPATH="$GO_TMPDIR/go/"
export HOME=${HOME:-"/root/"}
pushd "$NETDATA_TMPDIR"
# the installer.sh script will append "netdata" after the --install-prefix arg
./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel >"$tmplog" 2>"$tmplog" || ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
ynh_exec_warn_less ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel
popd
ynh_secure_remove --file=$NETDATA_TMPDIR
ynh_secure_remove --file=$GO_TMPDIR
# Specific configuration
configure_netdata
@ -56,4 +63,4 @@ ynh_systemd_action --service_name="$app" --action="restart" --log_path="$install
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of $app completed" --last
ynh_script_progression --message="Installation of $app completed" --last

View file

@ -22,6 +22,8 @@ fi
# Remove the dedicated NGINX config
ynh_remove_nginx_config
ynh_systemd_action --service_name="$app" --action="stop"
#=================================================
# UNINSTALLING NETDATA
#=================================================
@ -44,7 +46,6 @@ ynh_secure_remove "/usr/share/netdata"
ynh_secure_remove "/usr/libexec/netdata"
ynh_secure_remove "/var/lib/netdata"
ynh_secure_remove "/var/cache/netdata"
ynh_secure_remove "/var/log/netdata"
ynh_secure_remove "/etc/netdata"
#=================================================

View file

@ -25,17 +25,24 @@ ynh_restore_file --origin_path="$install_dir/etc/netdata"
ynh_script_progression --message="Reinstalling Netdata..." --weight=18
# Download, check integrity, uncompress and patch the source from app.src
NETDATA_TMPDIR=$(mktemp -d)
NETDATA_TMPDIR="$install_dir/netdata_install"
mkdir -p $NETDATA_TMPDIR
ynh_setup_source --dest_dir="$NETDATA_TMPDIR"
GO_TMPDIR="$install_dir/go_install"
mkdir -p $GO_TMPDIR
ynh_setup_source --source_id="go" --dest_dir="$GO_TMPDIR"
# create a temporary file for the log
tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
export PATH="$GO_TMPDIR/bin:$PATH"
export GOPATH="$GO_TMPDIR/go/"
export HOME=${HOME:-"/root/"}
pushd "$NETDATA_TMPDIR"
# the installer.sh script will append "netdata" after the --install-prefix arg
./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel >"$tmplog" 2>"$tmplog" || ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
ynh_exec_warn_less ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel
popd
ynh_secure_remove --file=$NETDATA_TMPDIR
ynh_secure_remove --file=$GO_TMPDIR
# Specific configuration
configure_netdata

View file

@ -19,8 +19,12 @@ ynh_script_progression --message="Upgrading source files..." --weight=18
#=================================================
# Download, check integrity, uncompress and patch the source from app.src
NETDATA_TMPDIR=$(mktemp -d)
ynh_setup_source "$NETDATA_TMPDIR"
NETDATA_TMPDIR="$install_dir/netdata_install"
mkdir -p $NETDATA_TMPDIR
ynh_setup_source --dest_dir="$NETDATA_TMPDIR"
GO_TMPDIR="$install_dir/go_install"
mkdir -p $GO_TMPDIR
ynh_setup_source --source_id="go" --dest_dir="$GO_TMPDIR"
#=================================================
# SPECIFIC UPGRADE
@ -33,14 +37,17 @@ if [ -n "${pids}" ]; then
kill -USR1 ${pids}
fi
# create a temporary file for the log
tmplog=$(mktemp /tmp/netdata-updater-log-XXXXXX.log)
export PATH="$GO_TMPDIR/bin:$PATH"
export GOPATH="$GO_TMPDIR/go/"
export HOME=${HOME:-"/root/"}
pushd "$NETDATA_TMPDIR"
# the installer.sh script will append "netdata" after the --install-prefix arg
./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud >"$tmplog" 2>"$tmplog" || ynh_die "FAILED TO COMPILE/INSTALL NETDATA"
# the installer.sh script will append "netdata" after the --install-prefix arg
ynh_exec_warn_less ./netdata-installer.sh --install-prefix /var/www/ --dont-wait --disable-cloud --disable-telemetry --stable-channel
popd
ynh_secure_remove --file=$NETDATA_TMPDIR
ynh_secure_remove --file=$GO_TMPDIR
# Specific configuration
configure_netdata