mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Force restart of wazuh since conf file is changing
This commit is contained in:
@@ -715,9 +715,9 @@ update_version() {
|
|||||||
|
|
||||||
upgrade_check() {
|
upgrade_check() {
|
||||||
# Let's make sure we actually need to update.
|
# Let's make sure we actually need to update.
|
||||||
NEWVERSION=$(cat $UPDATE_DIR/VERSION | tr -d '\n')
|
NEWVERSION=$(cat $UPDATE_DIR/VERSION)
|
||||||
HOTFIXVERSION=$(cat $UPDATE_DIR/HOTFIX | tr -d '\n')
|
HOTFIXVERSION=$(cat $UPDATE_DIR/HOTFIX)
|
||||||
[[ -f /etc/sohotfix ]] && CURRENTHOTFIX=$(cat /etc/sohotfix | tr -d '\n')
|
[[ -f /etc/sohotfix ]] && CURRENTHOTFIX=$(cat /etc/sohotfix)
|
||||||
if [ "$INSTALLEDVERSION" == "$NEWVERSION" ]; then
|
if [ "$INSTALLEDVERSION" == "$NEWVERSION" ]; then
|
||||||
echo "Checking to see if there are hotfixes needed"
|
echo "Checking to see if there are hotfixes needed"
|
||||||
if [ "$HOTFIXVERSION" == "$CURRENTHOTFIX" ]; then
|
if [ "$HOTFIXVERSION" == "$CURRENTHOTFIX" ]; then
|
||||||
@@ -845,6 +845,7 @@ apply_hotfix() {
|
|||||||
if [[ ! -z "$WAZUHHEADER" ]]; then
|
if [[ ! -z "$WAZUHHEADER" ]]; then
|
||||||
echo "$FILE has an XML header; removing"
|
echo "$FILE has an XML header; removing"
|
||||||
sed -i 1d $FILE
|
sed -i 1d $FILE
|
||||||
|
so-wazuh-restart
|
||||||
else
|
else
|
||||||
echo "$FILE does not have an XML header, so no changes are necessary."
|
echo "$FILE does not have an XML header, so no changes are necessary."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user