From 2926527ad0d2d11c3c7c1c8e88eb5da7f723b556 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 29 Jan 2021 13:21:58 -0500 Subject: [PATCH] Place sig keys in same dir as other sig files --- salt/common/tools/sbin/so-image-common | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/common/tools/sbin/so-image-common b/salt/common/tools/sbin/so-image-common index cfcaceb48..9702da3f1 100755 --- a/salt/common/tools/sbin/so-image-common +++ b/salt/common/tools/sbin/so-image-common @@ -126,6 +126,9 @@ update_docker_containers() { container_list fi + rm -rf $SIGNPATH >> "$LOG_FILE" 2>&1 + mkdir -p $SIGNPATH >> "$LOG_FILE" 2>&1 + # 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 $SIGNPATH/KEYS" >> "$LOG_FILE" 2>&1 result=$? @@ -136,9 +139,6 @@ update_docker_containers() { exit 1 fi - rm -rf $SIGNPATH >> "$LOG_FILE" 2>&1 - mkdir -p $SIGNPATH >> "$LOG_FILE" 2>&1 - # Download the containers from the interwebs for i in "${TRUSTED_CONTAINERS[@]}" do