Fix a bug that task would fail when cgroup is not enabled

This commit is contained in:
FAREAST\chezhang 2018-03-12 21:06:07 +08:00
Родитель 77567a7b0d
Коммит d7023ec4d2
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -587,6 +587,11 @@ namespace hpc
"Modified user mapping logic", "Modified user mapping logic",
} }
}, },
{ "2.3.4.0",
{
"Fixed a bug that task would fail when cgroup is not enabled",
}
},
}; };
return versionHistory; return versionHistory;

Просмотреть файл

@ -29,5 +29,5 @@ if $CGInstalled; then
cgexec -g "$group" sudo -H -E -u $userName env "PATH=$PATH" /bin/bash $runPath cgexec -g "$group" sudo -H -E -u $userName env "PATH=$PATH" /bin/bash $runPath
else else
/bin/bash $taskFolder/TestMutualTrust.sh "$taskId" "$taskFolder" "$userName" &&\ /bin/bash $taskFolder/TestMutualTrust.sh "$taskId" "$taskFolder" "$userName" &&\
/bin/bash sudo -H -E -u $userName env "PATH=$PATH" /bin/bash $runPath sudo -H -E -u $userName env "PATH=$PATH" /bin/bash $runPath
fi fi