-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added simple bash script to build/install
- Loading branch information
1 parent
9956303
commit 6943f95
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |