mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Add rc1 conditional logic
This commit is contained in:
@@ -89,6 +89,18 @@ highstate() {
|
|||||||
pillar_changes() {
|
pillar_changes() {
|
||||||
# This function is to add any new pillar items if needed.
|
# This function is to add any new pillar items if needed.
|
||||||
echo "Checking to see if pillar changes are needed."
|
echo "Checking to see if pillar changes are needed."
|
||||||
|
|
||||||
|
# Move baseurl in global.sls
|
||||||
|
if [[ "$INSTALLEDVERSION" =~ rc.1 ]]; then
|
||||||
|
# Move the static file to global.sls
|
||||||
|
echo "Migrating static.sls to global.sls"
|
||||||
|
mv -v /opt/so/saltstack/local/pillar/static.sls /opt/so/saltstack/local/pillar/global.sls >> "$SOUP_LOG" 2>&1
|
||||||
|
sed -i '1c\global:' /opt/so/saltstack/local/pillar/global.sls >> "$SOUP_LOG" 2>&1
|
||||||
|
|
||||||
|
# Moving baseurl inside static.sls
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
update_dockers() {
|
update_dockers() {
|
||||||
|
|||||||
Reference in New Issue
Block a user