add AllowGroups config in preinstall

Signed-off-by: ericyuanhui <285521263@qq.com>
This commit is contained in:
ericyuanhui
2021-08-04 23:19:55 +08:00
parent edf2618c6e
commit 0fcb29fd2b
2 changed files with 36 additions and 38 deletions

View File

@ -1412,10 +1412,11 @@ class PreinstallImpl:
self.context.logger.log("Preparing SSH service.", "addStep")
try:
# Preparing SSH service
cmd = "%s -t %s -u %s -X %s -l %s" % (
OMCommand.getLocalScript("Local_PreInstall"),
cmd = "%s -t %s -u %s -g %s -X %s -l %s" % \
(OMCommand.getLocalScript("Local_PreInstall"),
ACTION_PREPARE_USER_SSHD_SERVICE,
self.context.user,
self.context.group,
self.context.xmlFile,
self.context.localLog)
DefaultValue.execCommandWithMode(