Commit 580cd96
Add superuser creation to the setup command
Enable superuser creation directly from the `grimoirelab
admin setup` command. This is useful when running the
platform for the first time, as it avoids the need to
execute an additional command. Particularly when
GrimoireLab runs inside a container.
A new `--no-interactive` option has been added to allow
non-interactive execution. When creating a user in
non-interactive mode, if both the username and password
are provided through environment variables, the command
will automatically create the superuser using those values.
Signed-off-by: Jose Javier Merchante <[email protected]>1 parent 3e052cc commit 580cd96
File tree
2 files changed
+54
-3
lines changed- releases/unreleased
- src/grimoirelab/core/runner/commands
2 files changed
+54
-3
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
55 | 64 | | |
56 | | - | |
| 65 | + | |
| 66 | + | |
57 | 67 | | |
58 | 68 | | |
59 | | - | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
| 76 | + | |
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
| |||
135 | 146 | | |
136 | 147 | | |
137 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
138 | 178 | | |
139 | 179 | | |
140 | 180 | | |
| |||
0 commit comments