Do not apply salt state if already applying a state

This commit is contained in:
Jason Ertel
2021-06-04 21:56:41 -04:00
parent e22421ec99
commit ba29b5e036
3 changed files with 6 additions and 7 deletions

View File

@@ -211,8 +211,10 @@ function syncElastic() {
echo "Database file does not exist yet, skipping users export"
fi
echo "Applying elastic state..."
salt-call state.apply elasticsearch queue=True
if [[ -z "$SKIP_STATE_APPLY" ]]; then
echo "Applying elastic state..."
salt-call state.apply elasticsearch queue=True
fi
}
function syncAll() {