debian 12

This commit is contained in:
usmannasir
2025-09-18 23:20:05 +05:00
parent 76356d3032
commit 2f297029d0

View File

@@ -445,10 +445,11 @@ class preFlightsChecks:
### Docker User/group
if self.distro == ubuntu:
if self.distro == ubuntu or self.distro == debian12:
command = 'adduser --disabled-login --gecos "" docker'
else:
command = "adduser docker"
# For CentOS/RHEL, use useradd which is non-interactive
command = "useradd -r -s /bin/false docker"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)