mirror of
https://github.com/YunoHost-Apps/netdata_ynh.git
synced 2024-09-03 19:46:33 +02:00
parent
4eb0ed2261
commit
bb810c35ad
10 changed files with 47 additions and 52 deletions
23
CHANGELOG.md
Normal file
23
CHANGELOG.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
## Unreleased
|
||||
- Nothing for now...
|
||||
|
||||
## [1.21.1~ynh2](https://github.com/YunoHost-Apps/netdata_ynh/pull/TBD) - 2020-04-27
|
||||
|
||||
#### Added
|
||||
* [Add changelog]()
|
||||
|
||||
#### Fixed
|
||||
- [fix buster support]()
|
||||
|
||||
#### Changed
|
||||
* [Remove now official helpers]()
|
||||
* [Use new permission system]()
|
||||
|
||||
## [1.21.1~ynh1](https://github.com/YunoHost-Apps/netdata_ynh/pull/41) - 2020-04-15
|
||||
|
||||
#### Changed
|
||||
* [Update to 1.21.1](https://github.com/YunoHost-Apps/wordpress_ynh/pull/41)
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
NetData for YunoHost
|
||||
---------------------
|
||||
|
||||
[](https://ci-apps.yunohost.org/jenkins/job/netdata%20%28Community%29/lastBuild/consoleFull)  
|
||||
[](https://install-app.yunohost.org/?app=netdata)
|
||||
[](https://ci-apps.yunohost.org/jenkins/job/netdata%20%28Community%29/lastBuild/consoleFull)
|
||||
|
||||
|
||||
[NetData](http://my-netdata.io/) is a system for **distributed real-time performance and health monitoring**.
|
||||
It provides **unparalleled insights, in real-time**, of everything happening on the
|
||||
|
|
|
@ -19,18 +19,8 @@
|
|||
wrong_path=1
|
||||
change_url=1
|
||||
;;; Levels
|
||||
Level 1=auto
|
||||
Level 2=auto
|
||||
Level 3=auto
|
||||
Level 4=na
|
||||
# https://github.com/YunoHost-Apps/netdata_ynh/issues/3
|
||||
Level 5=1
|
||||
Level 5=auto
|
||||
# https://github.com/YunoHost-Apps/netdata_ynh/issues/4
|
||||
Level 6=auto
|
||||
Level 7=auto
|
||||
Level 8=0
|
||||
Level 9=0
|
||||
Level 10=0
|
||||
;;; Options
|
||||
Email=
|
||||
Notification=none
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "real-time performance and health monitoring",
|
||||
"fr": "Monitoring serveur en temps reel"
|
||||
},
|
||||
"version": "1.21.1~ynh1",
|
||||
"version": "1.21.1~ynh2",
|
||||
"url": "http://my-netdata.io/",
|
||||
"license": "GPL-3.0",
|
||||
"maintainer": {
|
||||
|
@ -15,7 +15,7 @@
|
|||
"url": ""
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.7.2"
|
||||
"yunohost": ">= 3.7.0"
|
||||
},
|
||||
"multi_instance": false,
|
||||
"services": [
|
||||
|
|
|
@ -35,7 +35,14 @@ touch /opt/netdata/etc/netdata/.opt-out-from-anonymous-statistics
|
|||
if type "setfacl" > /dev/null ; then
|
||||
# Give dovecot privileges to netdata user to monitor Dovecot
|
||||
# Need dovecot 2.2.16+
|
||||
setfacl -m u:netdata:rw /var/run/dovecot/stats
|
||||
if [ -f /var/run/dovecot/stats ] ; then
|
||||
# Until Debian Strech
|
||||
setfacl -m u:netdata:rw /var/run/dovecot/stats
|
||||
fi
|
||||
if [ -f /var/run/dovecot/old-stats ] ; then
|
||||
# From Debian Buster
|
||||
setfacl -m u:netdata:rw /var/run/dovecot/old-stats
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add netdata to the adm group to access web logs
|
||||
|
@ -88,15 +95,3 @@ EOF
|
|||
fi
|
||||
chgrp netdata $postgres_file
|
||||
}
|
||||
|
||||
# ============= FUTURE YUNOHOST HELPER =============
|
||||
# Delete a file checksum from the app settings
|
||||
#
|
||||
# $app should be defined when calling this helper
|
||||
#
|
||||
# usage: ynh_remove_file_checksum file
|
||||
# | arg: file - The file for which the checksum will be deleted
|
||||
ynh_delete_file_checksum () {
|
||||
local checksum_setting_name=checksum_${1//[\/ ]/_} # Replace all '/' and ' ' by '_'
|
||||
ynh_app_setting_delete $app $checksum_setting_name
|
||||
}
|
||||
|
|
|
@ -6,12 +6,7 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# Get the _common.sh file if it's not in the current directory
|
||||
cp ../settings/scripts/_common.sh ./_common.sh
|
||||
chmod a+rx _common.sh
|
||||
fi
|
||||
source _common.sh
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -109,14 +109,15 @@ cp ../conf/app.src /opt/netdata/etc/netdata
|
|||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
||||
# If app is public, add url to SSOWat conf as skipped_uris
|
||||
# Make app public if necessary
|
||||
if [ $is_public -eq 1 ]; then
|
||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||
# Everyone can access the app.
|
||||
# The "main" permission is automatically created before the install script.
|
||||
ynh_permission_update --permission "main" --add "visitors"
|
||||
fi
|
||||
|
||||
# Add direct access in the portal to admin only
|
||||
yunohost app addaccess --users=$admin $app
|
||||
ynh_permission_update --permission "main" --add "$admin"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
|
@ -6,11 +6,6 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# Get file fonction if not been to the current directory
|
||||
cp ../settings/scripts/_common.sh ./_common.sh
|
||||
chmod a+rx _common.sh
|
||||
fi
|
||||
# Source app helpers
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
|
|
@ -6,12 +6,7 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# Get the _common.sh file if it's not in the current directory
|
||||
cp ../settings/scripts/_common.sh ./_common.sh
|
||||
chmod a+rx _common.sh
|
||||
fi
|
||||
source _common.sh
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -115,10 +115,12 @@ cp ../conf/app.src /opt/netdata/etc/netdata
|
|||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
# If app is public, add url to SSOWat conf as skipped_uris
|
||||
|
||||
# Make app public if necessary
|
||||
if [[ $is_public -eq 1 ]]; then
|
||||
# See install script
|
||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||
# Everyone can access the app.
|
||||
# The "main" permission is automatically created before the install script.
|
||||
ynh_permission_update --permission "main" --add "visitors"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue