Skip to content
Snippets Groups Projects
Commit 8e9272b4 authored by Michael Davis's avatar Michael Davis
Browse files

Sets EOS user to daemon

parent 237ade39
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
echo "whoami:"
whoami
echo "USER=${USER}"
# Migration tools parameters
#EOSINSTANCE=ctaeos
#EOS_CMD="/usr/bin/eos root://${EOSINSTANCE}"
EOS_CMD=/usr/bin/eos
EOS_CMD="/usr/bin/eos -r 2 2"
EOS_TEST_DIR_INJECT=/usr/bin/eos-test-dir-inject
CONFIG_FILE=/etc/cta/castor-migration.conf
TMPFILE=/tmp/eos-test-inject-sh.$$
......
......@@ -37,7 +37,6 @@ fi
echo
echo "Launching grpc_dir_inject.sh on ctaeos pod"
kubectl -n ${NAMESPACE} cp grpc_dir_inject.sh ctaeos:/root/grpc_dir_inject.sh
kubectl -n ${NAMESPACE} exec ctaeos -- chmod 755 /root/grpc_dir_inject.sh
kubectl -n ${NAMESPACE} exec ctaeos -- sudo -u daemon bash /root/grpc_dir_inject.sh || exit 1
kubectl -n ${NAMESPACE} exec ctaeos -- bash /root/grpc_dir_inject.sh || exit 1
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment