blob: 243cae8a2d851e2b3aa7d87c9095144d40b89d71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
#set -e
if [ ${RESCRAMBLE+x} ]; then
echo "Reinstalling all packages to get the latest Polymorphic Linux scramble"
apk upgrade --update-cache --available
fi
if [ ${PGID+x} ]; then
echo "Adding user netdata to group with id ${PGID}"
addgroup -g "${PGID}" -S hostgroup 2>/dev/null
sed -i "s/${PGID}:$/${PGID}:netdata/g" /etc/group
fi
exec /usr/sbin/netdata -u netdata -D -s /host -p "${NETDATA_PORT}" "$@"
|