blob: 5673b8f45a7c972522a2ee22efe0f51df9236130 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
set -e
# Create a group "tedge-agent" if not created before
if ! getent group tedge-agent > /dev/null; then
addgroup --quiet --system tedge-agent
fi
# Create a user "tedge-agent" if not created before
if ! getent passwd tedge-agent > /dev/null; then
adduser --quiet --system --no-create-home --ingroup tedge-agent --shell /usr/sbin/nologin tedge-agent
fi
#DEBHELPER#
|