mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 03:02:58 +01:00
salt-relay import-file reporting
On successful import, return dashboard URL
This commit is contained in:
@@ -232,8 +232,8 @@ function import_file() {
|
||||
log "Exit Code: $exit_code"
|
||||
|
||||
if [[ exit_code -eq 0 ]]; then
|
||||
log "true"
|
||||
$(echo "true" > "${SOC_PIPE}")
|
||||
url=$(echo "$response" | sed ':a;N;$!ba;s/\n//g' | grep -E -o "https://\S*&z=UTC")
|
||||
$(echo "$url" > "${SOC_PIPE}")
|
||||
else
|
||||
log "false"
|
||||
$(echo "false" > "${SOC_PIPE}")
|
||||
|
||||
Reference in New Issue
Block a user