Manjunath Ranganathaiah | da77b64 | 2018-09-28 16:15:07 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright 2018 Intel Corporation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | |
| 18 | CASERVICE_DATA="$(pwd)/data/caservice" |
| 19 | DISTCENTER_DATA="$(pwd)/data/distcenter" |
| 20 | ABRMD_DATA="$(pwd)/data/abrmd" |
| 21 | rm -rf $CASERVICE_DATA/host_testnode |
| 22 | rm -rf $DISTCENTER_DATA/host_testnode |
| 23 | rm -f $DISTCENTER_DATA/privkey.pem.gpg |
| 24 | rm -f $DISTCENTER_DATA/ca.cert |
| 25 | rm -rf $ABRMD_DATA/host_testnode |
| 26 | rm -rf /tmp/run/dbus |
| 27 | |
| 28 | docker stop tpm-init abrmd distcenter testca aafca |
| 29 | docker rm tpm-init abrmd distcenter testca aafca |
| 30 | rm -f setup.log |
| 31 | rm -f $CASERVICE_DATA/*.gpg |
| 32 | rm -f $ABRMD_DATA/cred/opass* |
| 33 | rm -f $ABRMD_DATA/cred/srk_handle* |
| 34 | |