Spaces:
Sleeping
Sleeping
Commit
·
57184e7
1
Parent(s):
8412325
Update entrypoint.sh
Browse files- entrypoint.sh +4 -3
entrypoint.sh
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
if
|
| 5 |
-
|
|
|
|
| 6 |
fi
|
| 7 |
|
| 8 |
# Switch to the user
|
|
|
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
+
# Check if the user already exists
|
| 4 |
+
if ! id user >/dev/null 2>&1; then
|
| 5 |
+
# Create a new user
|
| 6 |
+
useradd -m -u 1000 user
|
| 7 |
fi
|
| 8 |
|
| 9 |
# Switch to the user
|