mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 21:17:59 +00:00
cleaned up after testing
This commit is contained in:
parent
7f7238f4d2
commit
097c3e3dd3
@ -87,10 +87,10 @@ ospackage {
|
||||
// Post Install
|
||||
postInstall 'sh /opt/hirs/aca/scripts/aca/aca_setup.sh -u'
|
||||
// add chrontab to run ACA at boot
|
||||
postInstall 'echo "@reboot sh /opt/hirs/aca/scripts/aca/aca_bootRun.sh -w" >> /etc/crontab'
|
||||
postInstall 'echo "@reboot root /opt/hirs/aca/scripts/aca/aca_bootRun.sh -w" >> /etc/crontab'
|
||||
// run ACA after install
|
||||
postInstall 'sh /opt/hirs/aca/scripts/aca/aca_bootRun.sh -w'
|
||||
postInstall 'chmod +x /opt/hirs/aca/scripts/aca/aca_bootRun.sh'
|
||||
postInstall '/opt/hirs/aca/scripts/aca/aca_bootRun.sh -w'
|
||||
postInstall 'chmod +x /opt/hirs/aca/scripts/aca/*'
|
||||
|
||||
// Uninstall
|
||||
preUninstall 'sh /opt/hirs/aca/scripts/aca/aca_remove_setup.sh'
|
||||
|
@ -127,8 +127,8 @@ WEB_TLS_PARAMS="--server.ssl.key-store-password=$hirs_pki_password \
|
||||
|
||||
if [ -z "$USE_WAR" ]; then
|
||||
echo "Booting the ACA from local build..."
|
||||
./gradlew bootRun --args="$CONNECTOR_PARAMS$WEB_TLS_PARAMS"
|
||||
./gradlew bootRun --args="$CONNECTOR_PARAMS$WEB_TLS_PARAMS"
|
||||
else
|
||||
echo "Booting the ACA from a $USE_WAR file..."
|
||||
echo "Booting the ACA from a war file..."
|
||||
java -jar $WAR_PATH $CONNECTOR_PARAMS$WEB_TLS_PARAMS &
|
||||
fi
|
||||
|
@ -32,6 +32,5 @@ rm -rf /etc/hirs
|
||||
echo "Removing the ACA crontab"
|
||||
sed -i '/aca_bootRun.sh/d' /etc/crontab
|
||||
echo "Shutting down the aca..."
|
||||
#pkill -f hirs/aca >/dev/null 2>&1;
|
||||
ps axf | grep HIRS_AttestationCAPortal.war | grep -v grep | awk '{print "kill " $1}' | sh >/dev/null 2>&1
|
||||
echo "ACA setup removal complete."
|
Loading…
Reference in New Issue
Block a user