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