Files
rocm-systems/projects/rdc/authentication/install_server.sh
T

忽略 .git-blame-ignore-revs 中的修訂。點擊 這裡 以繞過並查看正常的 Blame 視圖。

25 行
613 B
Bash
原始文件 標準檢視 歷史記錄

#!/bin/bash
2025-09-24 11:07:20 -05:00
# Copyright © Advanced Micro Devices, Inc., or its affiliates.
# SPDX-License-Identifier: MIT
# 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
2020-03-20 10:32:25 -05:00
mkdir -p $INSTALL_DIR
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
2020-03-20 10:32:25 -05:00
chown -R rdc:rdc $INSTALL_DIR/server
chown -R rdc:rdc $INSTALL_DIR/client