mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
fix writing to PILLARFILE
This commit is contained in:
@@ -601,7 +601,7 @@ master_pillar() {
|
|||||||
PILLARFILE=$TMP/pillar/minions/$MINION_ID.sls
|
PILLARFILE=$TMP/pillar/minions/$MINION_ID.sls
|
||||||
|
|
||||||
# Create the master pillar
|
# Create the master pillar
|
||||||
echo "master:" > $PILLARFILE
|
echo "master:" >> $PILLARFILE
|
||||||
echo " mainip: $MAINIP" >> $PILLARFILE
|
echo " mainip: $MAINIP" >> $PILLARFILE
|
||||||
echo " mainint: $MAININT" >> $PILLARFILE
|
echo " mainint: $MAININT" >> $PILLARFILE
|
||||||
echo " esheap: $ES_HEAP_SIZE" >> $PILLARFILE
|
echo " esheap: $ES_HEAP_SIZE" >> $PILLARFILE
|
||||||
@@ -704,7 +704,7 @@ node_pillar() {
|
|||||||
PILLARFILE=$TMP/pillar/minions/$MINION_ID.sls
|
PILLARFILE=$TMP/pillar/minions/$MINION_ID.sls
|
||||||
|
|
||||||
# Create the node pillar
|
# Create the node pillar
|
||||||
echo "node:" > $PILLARFILE
|
echo "node:" >> $PILLARFILE
|
||||||
echo " mainip: $MAINIP" >> $PILLARFILE
|
echo " mainip: $MAINIP" >> $PILLARFILE
|
||||||
echo " mainint: $MAININT" >> $PILLARFILE
|
echo " mainint: $MAININT" >> $PILLARFILE
|
||||||
echo " esheap: $NODE_ES_HEAP_SIZE" >> $PILLARFILE
|
echo " esheap: $NODE_ES_HEAP_SIZE" >> $PILLARFILE
|
||||||
@@ -1102,7 +1102,7 @@ sensor_pillar() {
|
|||||||
|
|
||||||
# Create the sensor pillar
|
# Create the sensor pillar
|
||||||
touch $PILLARFILE
|
touch $PILLARFILE
|
||||||
echo "sensor:" > $PILLARFILE
|
echo "sensor:" >> $PILLARFILE
|
||||||
echo " interface: bond0" >> $PILLARFILE
|
echo " interface: bond0" >> $PILLARFILE
|
||||||
echo " mainip: $MAINIP" >> $PILLARFILE
|
echo " mainip: $MAINIP" >> $PILLARFILE
|
||||||
echo " mainint: $MAININT" >> $PILLARFILE
|
echo " mainint: $MAININT" >> $PILLARFILE
|
||||||
|
|||||||
Reference in New Issue
Block a user