Merge pull request #5949 from Security-Onion-Solutions/kilo

Fix Docker-created corruption of SOC user roles file
This commit is contained in:
Mike Reeves authored and GitHub committed 2021-10-19 18:37:37 -04:00
commit e1ad02c28d
1 file changed
+4
+4
View File
@@ -182,6 +182,10 @@ function ensureRoleFileExists() {
echo "Database file does not exist yet, installation is likely not yet complete."
fi
if [[ -d "$socRolesFile" ]]; then
echo "Removing invalid roles directory created by Docker"
rm -fr "$socRolesFile"
fi
mv "${rolesTmpFile}" "${socRolesFile}"
fi
}