diff options
author | rebortg <github@ghlr.de> | 2024-09-11 14:15:07 +0200 |
---|---|---|
committer | rebortg <github@ghlr.de> | 2024-09-18 22:00:19 +0200 |
commit | a0c15a159e54cb1b6abba7a0a6a0a793a53915d0 (patch) | |
tree | 2e9d106b21c59ec5b866b34197fa5250daae6813 /debian/vyos-1x.postinst | |
parent | de8d388c9cf32eb9ef9f38abb2d6ba292f56069f (diff) | |
download | vyos-1x-a0c15a159e54cb1b6abba7a0a6a0a793a53915d0.tar.gz vyos-1x-a0c15a159e54cb1b6abba7a0a6a0a793a53915d0.zip |
T973: add basic node_exporter implementation
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r-- | debian/vyos-1x.postinst | 5 |
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 |