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

Upgrade to upstream version 1.6.0 (closes #6)

Add YunoHost service
Switch to systemd syntax
This commit is contained in:
Jimmy Monin 2017-03-23 21:38:35 +01:00
parent 2c22e1b33b
commit 2e43ea3045
8 changed files with 18 additions and 8 deletions

View file

@ -11,7 +11,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
(**physical** & **virtual** servers, **containers**, **IoT** devices), without
disrupting their core function._
**Shipped version:** 1.5.0
**Shipped version:** 1.6.0
**Customization brought by the package:**

View file

@ -4,8 +4,8 @@ Homepage: https://https://my-netdata.io/
Standards-Version: 3.9.2
Package: netdata-deps
Version: 1.5.0-2
Depends: zlib1g-dev, uuid-dev, libmnl-dev, gcc, make, git, autoconf, autoconf-archive, autogen, automake, pkg-config, curl, jq, nodejs, python-mysqldb
Version: 1.6.0-1
Depends: zlib1g-dev, uuid-dev, libmnl-dev, gcc, make, git, autoconf, autoconf-archive, autogen, automake, pkg-config, curl, jq, nodejs, python-mysqldb, libipmimonitoring-dev
Architecture: all
Description: meta package for NetData dependencies
netdata is a system for distributed real-time performance and health monitoring. It provides unparalleled insights, in real-time, of everything happening on the system it runs (including applications such as web and database servers), using modern interactive web dashboards.

View file

@ -6,6 +6,7 @@
"en": "real-time performance and health monitoring",
"fr": "Monitoring serveur en temps reel"
},
"version": "1.6.0",
"url": "http://my-netdata.io/",
"license": "GPL-3.0",
"maintainer": {

View file

@ -4,7 +4,7 @@
#
# Application version
VERSION="1.5.0"
VERSION="1.6.0"
# Remote URL to fetch application source archive
APPLICATION_SOURCE_URL="https://github.com/firehol/netdata/releases/download/v${VERSION}/netdata-${VERSION}.tar.gz"

View file

@ -53,6 +53,9 @@ sudo setfacl -m u:netdata:rw /var/run/dovecot/stats
# Add netdata to the adm group to access web logs
sudo usermod -a -G adm netdata
# Declare service for YunoHost monitoring
sudo yunohost service add netdata --log "/opt/netdata/var/log/netdata/error.log" "/opt/netdata/var/log/netdata/access.log" "/opt/netdata/var/log/netdata/debug.log"
# Restart NetData
sudo systemctl restart netdata
@ -80,4 +83,4 @@ if [[ $is_public -eq 1 ]]; then
fi
# Reload services
sudo service nginx reload
sudo systemctl reload nginx

View file

@ -37,6 +37,9 @@ sudo setfacl -x u:netdata /var/run/dovecot/stats
# Remove user and group
sudo userdel netdata
# Remove service from YunoHost monitoring
sudo yunohost service remove netdata
# Remove MySQL user
echo "drop user 'netdata'@'localhost';" | mysql -uroot -p$(sudo cat /etc/yunohost/mysql)
@ -45,6 +48,6 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
sudo rm -rf /home/yunohost.app/$app
# Reload nginx service
sudo service nginx reload
sudo systemctl reload nginx

View file

@ -64,4 +64,4 @@ sudo chown -R root: "$conf_path"
sudo cp -a $SRCPATH/nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
# Restart webserver
sudo service nginx reload
sudo systemctl reload nginx

View file

@ -58,6 +58,9 @@ sudo setfacl -m u:netdata:rw /var/run/dovecot/stats
# Add netdata to the adm group to access web logs
sudo usermod -a -G adm netdata
# Declare service for YunoHost monitoring
sudo yunohost service add netdata --log "/opt/netdata/var/log/netdata/error.log" "/opt/netdata/var/log/netdata/access.log" "/opt/netdata/var/log/netdata/debug.log"
# Restart NetData
sudo systemctl restart netdata
@ -83,4 +86,4 @@ if [[ $is_public -eq 1 ]]; then
fi
# Reload nginx service
sudo service nginx reload
sudo systemctl reload nginx