diff options
author | Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com> | 2022-08-19 17:20:23 +0200 |
---|---|---|
committer | Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com> | 2022-08-22 16:17:12 +0200 |
commit | 1c627374f60b202dd766067404f948f1b936a2e6 (patch) | |
tree | b099f1152f5a82dbb335ac306ecfa0e8c976fc65 /configuration/debian/tedge/preinst | |
parent | 53c75cb81ec4551fde6dab3e26ef55ff6cd7e7f2 (diff) |
Replace scripts commands for the cross-Unix system compatibility
Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
Diffstat (limited to 'configuration/debian/tedge/preinst')
-rw-r--r-- | configuration/debian/tedge/preinst | 6 |
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" |