forked from alertlogic/paws-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy the cfn folder of paws collector as well
- Loading branch information
Rakhi Mundhada
authored and
Rakhi Mundhada
committed
Feb 12, 2024
1 parent
e565db2
commit bdc73fd
Showing
4 changed files
with
26 additions
and
17 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
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
#!/bin/sh | ||
COLLECTOR_NAME=$1 | ||
|
||
cd collectors/"$COLLECTOR_NAME" || exit 1 | ||
npm install || exit 1 | ||
make package || exit 1 | ||
cd collectors/"$COLLECTOR_NAME" | ||
npm install | ||
make package | ||
|
||
mkdir -p "${COLLECTOR_NAME}"-collector | ||
cp -r cfn al-"${COLLECTOR_NAME}"-collector.zip al-"${COLLECTOR_NAME}"-collector.json themis-template "${COLLECTOR_NAME}"-collector | ||
cp -r cfn al-"${COLLECTOR_NAME}"-collector.zip al-"${COLLECTOR_NAME}"-collector.json "${COLLECTOR_NAME}"-collector | ||
if [ -d "./themis-template" ]; then \ | ||
cp -r themis-template "${COLLECTOR_NAME}"-collector; \ | ||
fi; \ | ||
zip -r ../../"${COLLECTOR_NAME}"-collector.zip "${COLLECTOR_NAME}"-collector |
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