mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Recover from situation where roles file is corrupted
This commit is contained in:
@@ -172,6 +172,8 @@ function ensureRoleFileExists() {
|
||||
|
||||
rm -fr "$socRolesFile"
|
||||
mv "${rolesTmpFile}" "${socRolesFile}"
|
||||
echo "The following users have all been migrated with the super user role:"
|
||||
cat "${socRolesFile}"
|
||||
else
|
||||
echo "Database file does not exist yet, installation is likely not yet complete."
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user