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