Place sig keys in same dir as other sig files

This commit is contained in:
Jason Ertel
2021-01-29 13:00:56 -05:00
parent c055427e40
commit 73909c4dea

View File

@@ -127,10 +127,10 @@ update_docker_containers() {
fi fi
# Let's make sure we have the public key # Let's make sure we have the public key
retry 50 10 "curl -sSL https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/master/KEYS -o /tmp/sig.key" >> "$LOG_FILE" 2>&1 retry 50 10 "curl -sSL https://raw.githubusercontent.com/Security-Onion-Solutions/securityonion/master/KEYS -o $SIGNPATH/KEYS" >> "$LOG_FILE" 2>&1
result=$? result=$?
if [[ $result -eq 0 ]]; then if [[ $result -eq 0 ]]; then
cat /tmp/sig.key | gpg --import - >> "$LOG_FILE" 2>&1 cat $SIGNPATH/KEYS | gpg --import - >> "$LOG_FILE" 2>&1
else else
echo "Failed to pull signature key file: $result" echo "Failed to pull signature key file: $result"
exit 1 exit 1