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:
parent
2c22e1b33b
commit
2e43ea3045
8 changed files with 18 additions and 8 deletions
|
@ -11,7 +11,7 @@ _netdata is **fast** and **efficient**, designed to permanently run on all syste
|
||||||
(**physical** & **virtual** servers, **containers**, **IoT** devices), without
|
(**physical** & **virtual** servers, **containers**, **IoT** devices), without
|
||||||
disrupting their core function._
|
disrupting their core function._
|
||||||
|
|
||||||
**Shipped version:** 1.5.0
|
**Shipped version:** 1.6.0
|
||||||
|
|
||||||
**Customization brought by the package:**
|
**Customization brought by the package:**
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ Homepage: https://https://my-netdata.io/
|
||||||
Standards-Version: 3.9.2
|
Standards-Version: 3.9.2
|
||||||
|
|
||||||
Package: netdata-deps
|
Package: netdata-deps
|
||||||
Version: 1.5.0-2
|
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
|
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
|
Architecture: all
|
||||||
Description: meta package for NetData dependencies
|
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.
|
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.
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"en": "real-time performance and health monitoring",
|
"en": "real-time performance and health monitoring",
|
||||||
"fr": "Monitoring serveur en temps reel"
|
"fr": "Monitoring serveur en temps reel"
|
||||||
},
|
},
|
||||||
|
"version": "1.6.0",
|
||||||
"url": "http://my-netdata.io/",
|
"url": "http://my-netdata.io/",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Application version
|
# Application version
|
||||||
VERSION="1.5.0"
|
VERSION="1.6.0"
|
||||||
|
|
||||||
# Remote URL to fetch application source archive
|
# Remote URL to fetch application source archive
|
||||||
APPLICATION_SOURCE_URL="https://github.com/firehol/netdata/releases/download/v${VERSION}/netdata-${VERSION}.tar.gz"
|
APPLICATION_SOURCE_URL="https://github.com/firehol/netdata/releases/download/v${VERSION}/netdata-${VERSION}.tar.gz"
|
||||||
|
|
|
@ -53,6 +53,9 @@ sudo setfacl -m u:netdata:rw /var/run/dovecot/stats
|
||||||
# Add netdata to the adm group to access web logs
|
# Add netdata to the adm group to access web logs
|
||||||
sudo usermod -a -G adm netdata
|
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
|
# Restart NetData
|
||||||
sudo systemctl restart netdata
|
sudo systemctl restart netdata
|
||||||
|
|
||||||
|
@ -80,4 +83,4 @@ if [[ $is_public -eq 1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
sudo service nginx reload
|
sudo systemctl reload nginx
|
||||||
|
|
|
@ -37,6 +37,9 @@ sudo setfacl -x u:netdata /var/run/dovecot/stats
|
||||||
# Remove user and group
|
# Remove user and group
|
||||||
sudo userdel netdata
|
sudo userdel netdata
|
||||||
|
|
||||||
|
# Remove service from YunoHost monitoring
|
||||||
|
sudo yunohost service remove netdata
|
||||||
|
|
||||||
# Remove MySQL user
|
# Remove MySQL user
|
||||||
echo "drop user 'netdata'@'localhost';" | mysql -uroot -p$(sudo cat /etc/yunohost/mysql)
|
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
|
sudo rm -rf /home/yunohost.app/$app
|
||||||
|
|
||||||
# Reload nginx service
|
# Reload nginx service
|
||||||
sudo service nginx reload
|
sudo systemctl reload nginx
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -64,4 +64,4 @@ sudo chown -R root: "$conf_path"
|
||||||
sudo cp -a $SRCPATH/nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
sudo cp -a $SRCPATH/nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||||
|
|
||||||
# Restart webserver
|
# Restart webserver
|
||||||
sudo service nginx reload
|
sudo systemctl reload nginx
|
||||||
|
|
|
@ -58,6 +58,9 @@ sudo setfacl -m u:netdata:rw /var/run/dovecot/stats
|
||||||
# Add netdata to the adm group to access web logs
|
# Add netdata to the adm group to access web logs
|
||||||
sudo usermod -a -G adm netdata
|
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
|
# Restart NetData
|
||||||
sudo systemctl restart netdata
|
sudo systemctl restart netdata
|
||||||
|
|
||||||
|
@ -83,4 +86,4 @@ if [[ $is_public -eq 1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reload nginx service
|
# Reload nginx service
|
||||||
sudo service nginx reload
|
sudo systemctl reload nginx
|
Loading…
Add table
Reference in a new issue