From 357c1db4451aa591bb82e320e1fe3096c0dfc2cc Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Sat, 18 Sep 2021 11:08:35 -0400 Subject: [PATCH] Recover from situation where roles file is corrupted --- salt/common/tools/sbin/so-user | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/common/tools/sbin/so-user b/salt/common/tools/sbin/so-user index 180092333..61aee71d6 100755 --- a/salt/common/tools/sbin/so-user +++ b/salt/common/tools/sbin/so-user @@ -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