mirror of
https://github.com/netdata/netdata.git
synced 2025-04-23 13:00:23 +00:00

* Fix user and group handling in DEB packages. * Actually apply correct ownership. But use the list of files in the package as provided by dpkg to do it instead of blindly modifying everything under /usr/libexec/netdata.
13 lines
163 B
Bash
13 lines
163 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
install)
|
|
if ! getent group netdata > /dev/null; then
|
|
addgroup --quiet --system netdata
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|