From 6943f95012d214689e6cb0766f429661cc2b2b96 Mon Sep 17 00:00:00 2001 From: sukhyung shin Date: Tue, 5 Nov 2024 00:41:07 -0800 Subject: [PATCH] added simple bash script to build/install --- setup.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..033b246 --- /dev/null +++ b/setup.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +echo "cloning repo" +git clone https://github.com/keyfactor/Keyfactor-CAgent -b tedge-demo + +echo "installing dependencies, please provide password as necessary" +sudo apt update +sudo apt install -y build-essential git libcurl4-gnutls-dev curl libssl-dev + +echo "creating /home/keyfactor folder structure" +sudo mkdir /home/keyfactor +sudo mkdir /home/keyfactor/Keyfactor-CAgent +sudo mkdir /home/keyfactor/Keyfactor-CAgent/certs +sudo chown -R $(whoami):$(whoami) /home/keyfactor +touch /home/keyfactor/Keyfactor-CAgent/certs/trust.store + +echo "building agent" +cd Keyfactor-CAgent +make clean +make opentest + +echo "run ./agent to continue"