From 73909c4dea4bc245eb71869ada42a4c69dba19bb Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 29 Jan 2021 13:00:56 -0500 Subject: [PATCH] Place sig keys in same dir as other sig files --- salt/common/tools/sbin/so-image-common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/so-image-common b/salt/common/tools/sbin/so-image-common index 76e5b9bdb..cfcaceb48 100755 --- a/salt/common/tools/sbin/so-image-common +++ b/salt/common/tools/sbin/so-image-common @@ -127,10 +127,10 @@ update_docker_containers() { fi # 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=$? 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 echo "Failed to pull signature key file: $result" exit 1