Skip to content
Snippets Groups Projects
Commit 2df441a1 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed creation of cta account for buildtree runner.

parent 4450eb92
Branches
Tags
No related merge requests found
......@@ -46,8 +46,7 @@ if [[ -n ${BUILDTREE_BASE} ]]; then
# cta:cta needed for ctafrontend and taped but adding it inconditionally in buildtree
echo "Adding cta user and group"
/usr/bin/getent group cta || /usr/sbin/groupadd cta
/usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g cta cta
/usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g tape cta
## The following is not working as one cannot refresh groups in current shell...
# echo 'Adding cta in tape group (grant access to /dev/sg* /dev/st* /dev/nst* devices'
# /usr/sbin/usermod -a -G tape cta
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment