Commit 879aaf1
Docker: Only switch user if the current user is root (besu-eth#7654)
* Update entrypoint script for Dockerfile to only switch user if its running as root
Signed-off-by: Rafael Matias <rafael@skyle.net>
* make root user check at the beginning
Signed-off-by: Rafael Matias <rafael@skyle.net>
---------
Signed-off-by: Rafael Matias <rafael@skyle.net>
Signed-off-by: Wolmin <lamonos123@gmail.com>1 parent 78f7c62 commit 879aaf1
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 52 | | |
49 | | - | |
| 53 | + | |
0 commit comments