Skip to content
Snippets Groups Projects
Commit 423181a8 authored by Julien Leduc's avatar Julien Leduc
Browse files

Adding cta user and cta group in ctafrontend as there is no rpm installed in the buildtree case.

parent 77aaa68c
No related branches found
No related tags found
No related merge requests found
......@@ -34,4 +34,10 @@ if [[ -n ${BUILDTREE_BASE} ]]; then
yum-config-manager() { echo "Skipping yum-config-manager $@"; }
yum() { echo "Skipping yum $@"; }
/opt/run/bin/mkSymlinks.sh
if [ "-${MY_NAME}-" == "-ctafrontend-" ]; then
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
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment