-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Arvindh <[email protected]>
- Loading branch information
1 parent
bc754ae
commit d493538
Showing
3 changed files
with
39 additions
and
16 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
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,26 @@ | ||
#!/usr/bin/bash | ||
# Copyright (c) Abstract Machines | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -euo pipefail | ||
|
||
scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
export MAGISTRALA_DIR=$scriptdir/../../../ | ||
|
||
cd $scriptdir | ||
|
||
readDotEnv() { | ||
set -o allexport | ||
source $MAGISTRALA_DIR/docker/.env | ||
set +o allexport | ||
} | ||
|
||
readDotEnv | ||
|
||
echo "Copying certificate files" | ||
cp -v data/${MG_NGINX_SERVER_NAME}.crt ${MAGISTRALA_DIR}/docker/ssl/certs/magistrala-server.crt | ||
cp -v data/${MG_NGINX_SERVER_NAME}.key ${MAGISTRALA_DIR}/docker/ssl/certs/magistrala-server.key | ||
cp -v data/${MG_VAULT_PKI_INT_FILE_NAME}.key ${MAGISTRALA_DIR}/docker/ssl/certs/ca.key | ||
cp -v data/${MG_VAULT_PKI_INT_FILE_NAME}_bundle.crt ${MAGISTRALA_DIR}/docker/ssl/certs/ca.crt | ||
|
||
exit 0 |
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