mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-28 00:38:56 +00:00
24 lines
476 B
Bash
24 lines
476 B
Bash
|
#!/bin/bash
|
||
|
# Capture location of the script to allow from invocation from any location
|
||
|
SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; )
|
||
|
|
||
|
pushd $SCRIPT_DIR
|
||
|
|
||
|
sh ../db/db_create.sh
|
||
|
if [ $? -eq 0 ]; then
|
||
|
echo "ACA database setup complete"
|
||
|
else
|
||
|
echo "Error setting up ACA DB"
|
||
|
exit 1
|
||
|
fi
|
||
|
sh ../pki/pki_setup.sh
|
||
|
if [ $? -eq 0 ]; then
|
||
|
echo "ACA PKI setup complete"
|
||
|
else
|
||
|
echo "Error setting up ACA PKI"
|
||
|
exit 1
|
||
|
fi
|
||
|
echo "ACA setup complete"
|
||
|
|
||
|
popd
|