Dateien
rocm-systems/authentication/install_server.sh
T
Chris Freehill 47fdfa4c7e Add support for gRPC authenticated communications
Also, make a few namespace corrections and some minor refactoring.

Change-Id: Iedcaf6b43cb7576bc11dfefe980abd190c838831
2020-08-17 14:07:25 -05:00

19 Zeilen
420 B
Bash
Ausführbare Datei

#!/bin/bash
# Note:
# * This script should reside in the artifacts directory
# when executed.
# * This script may require root privilege
if [ $# -lt 1 ]; then
echo "Need to specify a installation root directory (e.g., /etc/rdc)"
exit 1
fi
INSTALL_DIR=$1
cp -R server $INSTALL_DIR
mkdir -p $INSTALL_DIR/client/certs
cp client/certs/rdc_cacert.pem $INSTALL_DIR/client/certs
chmod 700 $INSTALL_DIR/server/private