mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #6213 from Security-Onion-Solutions/issue/5809
Issue/5809
This commit is contained in:
@@ -221,6 +221,19 @@ check_local_mods() {
|
|||||||
|
|
||||||
# {% endraw %}
|
# {% endraw %}
|
||||||
|
|
||||||
|
check_pillar_items() {
|
||||||
|
local pillar_output=$(salt-call pillar.items --out=json)
|
||||||
|
|
||||||
|
cond=$(jq '.local | has("_errors")' <<< "$pillar_output")
|
||||||
|
if [[ "$cond" == "true" ]]; then
|
||||||
|
printf "\nThere is an issue rendering the manager's pillars. Please correct the issues in the sls files mentioned below before running SOUP again.\n\n"
|
||||||
|
jq '.local._errors[]' <<< "$pillar_output"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
printf "\nThe manager's pillars can be rendered. We can proceed with SOUP.\n\n"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
check_sudoers() {
|
check_sudoers() {
|
||||||
if grep -q "so-setup" /etc/sudoers; then
|
if grep -q "so-setup" /etc/sudoers; then
|
||||||
echo "There is an entry for so-setup in the sudoers file, this can be safely deleted using \"visudo\"."
|
echo "There is an entry for so-setup in the sudoers file, this can be safely deleted using \"visudo\"."
|
||||||
@@ -852,6 +865,8 @@ verify_latest_update_script() {
|
|||||||
main() {
|
main() {
|
||||||
trap 'check_err $?' EXIT
|
trap 'check_err $?' EXIT
|
||||||
|
|
||||||
|
check_pillar_items
|
||||||
|
|
||||||
echo "Checking to see if this is an airgap install."
|
echo "Checking to see if this is an airgap install."
|
||||||
echo ""
|
echo ""
|
||||||
check_airgap
|
check_airgap
|
||||||
|
|||||||
Reference in New Issue
Block a user