Matheus Machado Guilhermino 225a449212 Migrate sudo-config to Debian
Modified sudo-config to add support for Debian packaging.

Test Plan:

PASS: Package installed and ISO built successfully

Story: 2009256
Task: 43549

Signed-off-by: Matheus Machado Guilhermino <Matheus.MachadoGuilhermino@windriver.com>
Change-Id: I554a0703b0a902705267da414620a51a738a66e5
2021-11-18 18:10:40 -03:00

10 lines
259 B
Bash

#!/bin/sh
getent group sys_protected >/dev/null || groupadd -f -g 345 sys_protected
getent passwd sysadmin > /dev/null || \
useradd -m -g sys_protected -G root \
-d /home/sysadmin -p 4SuW8cnXFyxsk \
-s /bin/sh sysadmin 2> /dev/null || :
#DEBHELPER#