summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-10-04 13:42:53 +0200
committerGitHub <noreply@github.com>2024-10-04 13:42:53 +0200
commita175bd6518cc27376eb179115d69ce42f0c5f69a (patch)
tree73d5b4cc53acec9a2a83e46716d8006bc2cd7e00 /debian
parent2a46c1cfb229f0e473b91aeaf8dfd278527ccda6 (diff)
parent1749c3a99b88c8376b505d0d776cc9b4d5f167cd (diff)
downloadvyos-1x-a175bd6518cc27376eb179115d69ce42f0c5f69a.tar.gz
vyos-1x-a175bd6518cc27376eb179115d69ce42f0c5f69a.zip
Merge pull request #4048 from rebortg/node_exporter
T973: add basic node_exporter implementation
Diffstat (limited to 'debian')
-rw-r--r--debian/vyos-1x.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index dc8ada267..d83634cfc 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -21,6 +21,11 @@ if ! grep -q '^openvpn' /etc/passwd; then
adduser --quiet --firstuid 100 --system --group --shell /usr/sbin/nologin openvpn
fi
+# node_exporter should get its own user
+if ! grep -q '^node_exporter' /etc/passwd; then
+ adduser --quiet --firstuid 100 --system --group --shell /bin/false node_exporter
+fi
+
# We need to have a group for RADIUS service users to use it inside PAM rules
if ! grep -q '^radius' /etc/group; then
addgroup --firstgid 1000 --quiet radius