mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-21 00:13:06 +01:00
Merge pull request #2980 from Security-Onion-Solutions/issue/2915
Issue/2915
This commit is contained in:
@@ -38,9 +38,10 @@ if [ ! -f $BACKUPFILE ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find oldest backup file and remove it
|
# Find oldest backup files and remove them
|
||||||
NUMBACKUPS=$(find /nsm/backup/ -type f -name "so-config-backup*" | wc -l)
|
NUMBACKUPS=$(find /nsm/backup/ -type f -name "so-config-backup*" | wc -l)
|
||||||
OLDESTBACKUP=$(find /nsm/backup/ -type f -name "so-config-backup*" | ls -1t | tail -1)
|
while [ "$NUMBACKUPS" -gt "$MAXBACKUPS" ]; do
|
||||||
if [ "$NUMBACKUPS" -gt "$MAXBACKUPS" ]; then
|
OLDESTBACKUP=$(find /nsm/backup/ -type f -name "so-config-backup*" -type f -printf '%T+ %p\n' | sort | head -n 1 | awk -F" " '{print $2}')
|
||||||
rm -f /nsm/backup/$OLDESTBACKUP
|
rm -f $OLDESTBACKUP
|
||||||
fi
|
NUMBACKUPS=$(find /nsm/backup/ -type f -name "so-config-backup*" | wc -l)
|
||||||
|
done
|
||||||
@@ -5,6 +5,6 @@
|
|||||||
"discover:sampleSize":"100",
|
"discover:sampleSize":"100",
|
||||||
"dashboard:defaultDarkTheme":true,
|
"dashboard:defaultDarkTheme":true,
|
||||||
"theme:darkMode":true,
|
"theme:darkMode":true,
|
||||||
"timepicker:timeDefaults":"{\n \"from\": \"now-24h\",\n \"to\": \"now\",\n \"mode\": \"quick\"\n}"
|
"timepicker:timeDefaults":"{\n \"from\": \"now-24h\",\n \"to\": \"now\"\n}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,3 +13,4 @@ elasticsearch.hosts: [ "http://{{ ES }}:9200" ]
|
|||||||
elasticsearch.requestTimeout: 90000
|
elasticsearch.requestTimeout: 90000
|
||||||
logging.dest: /var/log/kibana/kibana.log
|
logging.dest: /var/log/kibana/kibana.log
|
||||||
telemetry.enabled: false
|
telemetry.enabled: false
|
||||||
|
security.showInsecureClusterWarning: false
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user