master
text 15 lines 408 Bytes
Raw
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6 configure|reconfigure)
7 chown root:netdata /usr/libexec/netdata/plugins.d/systemd-journal.plugin
8 chmod 0750 /usr/libexec/netdata/plugins.d/systemd-journal.plugin
9 if ! setcap "cap_dac_read_search=eip" /usr/libexec/netdata/plugins.d/systemd-journal.plugin; then
10 chmod -f 4750 /usr/libexec/netdata/plugins.d/systemd-journal.plugin
11 fi
12 ;;
13 esac
14
15 exit 0