summaryrefslogtreecommitdiffstats
path: root/configuration/debian/tedge/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'configuration/debian/tedge/preinst')
-rw-r--r--configuration/debian/tedge/preinst6
1 files changed, 3 insertions, 3 deletions
diff --git a/configuration/debian/tedge/preinst b/configuration/debian/tedge/preinst
index b2843104..ec91f6e8 100644
--- a/configuration/debian/tedge/preinst
+++ b/configuration/debian/tedge/preinst
@@ -3,13 +3,13 @@ set -e
### Create groups
if ! getent group tedge >/dev/null; then
- addgroup --quiet --system tedge
+ groupadd --system tedge
fi
### Create users
-# Create user tedge with no additional info(--gecos "") no home(--no-create-home), no login(--shell) and in group tedge(--ingroup)
+# Create user tedge with no home(--no-create-home), no login(--shell) and in group tedge(--gid)
if ! getent passwd tedge >/dev/null; then
- adduser --quiet --system --gecos "" --no-create-home --disabled-login --shell /sbin/nologin --ingroup tedge tedge
+ useradd --system --no-create-home --shell /sbin/nologin --gid tedge tedge
fi
### Create file in /etc/sudoers.d directory. With this configuration, the tedge user have the right to call the tedge command with sudo rights, which is required for system-wide configuration in "/etc/tedge"