#!/bin/sh
path=$(
cd "$(dirname "$0")"
pwd
)
echo "update the client and server yaml files"
sed -i "s#python3 .*/key_parameters_select.py#python3 $path/key_parameters_select.py#g" $path/key_parameters_select_client.yaml
sed -i "s#cat .*/key_parameters_select.py#cat $path/key_parameters_select.py#g" $path/key_parameters_select_server.yaml
sed -i "s#' .*/key_parameters_select.py#' $path/key_parameters_select.py#g" $path/key_parameters_select_server.yaml
echo "copy the server yaml file to /etc/atuned/tuning/"
cp $path/key_parameters_select_server.yaml /etc/atuned/tuning/