Commit e079d45a authored by Michael Davis's avatar Michael Davis
Browse files

Sets EOS user to daemon

parent a1f725ae
#!/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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment