mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 19:22:54 +01:00
Replace sed for so-yaml
This commit is contained in:
@@ -36,7 +36,9 @@ while [[ $try_count -le 6 ]]; do
|
|||||||
}"
|
}"
|
||||||
|
|
||||||
# Update the Automation API key in the secrets pillar
|
# Update the Automation API key in the secrets pillar
|
||||||
sed "s/playbook_automation_api_key:/playbook_automation_api_key: ${automation_api_key}/g" -i $local_salt_dir/pillar/secrets.sls
|
so-yaml.py remove $local_salt_dir/pillar/secrets.sls secrets.playbook_automation_api_key
|
||||||
|
printf '%s\n'\
|
||||||
|
" playbook_automation_api_key: $automation_api_key" >> $local_salt_dir/pillar/secrets.sls
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
((try_count++))
|
((try_count++))
|
||||||
|
|||||||
Reference in New Issue
Block a user