Spaces:
Sleeping
Sleeping
Commit
·
206a5c8
1
Parent(s):
02f7e02
Update entrypoint.sh
Browse files- entrypoint.sh +2 -8
entrypoint.sh
CHANGED
|
@@ -5,14 +5,8 @@ set -e
|
|
| 5 |
if id "$USER_ID" >/dev/null 2>&1; then
|
| 6 |
echo "User with ID $USER_ID already exists."
|
| 7 |
else
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
# Copy the contents of /etc/skel to the user's home directory
|
| 12 |
-
cp -r /etc/skel/* "/app/home/user/"
|
| 13 |
-
|
| 14 |
-
# Set overly permissive ownership of the user's home directory
|
| 15 |
-
chmod -R 777 "/app/home/user"
|
| 16 |
fi
|
| 17 |
|
| 18 |
# Run the CMD or any other command you want to execute
|
|
|
|
| 5 |
if id "$USER_ID" >/dev/null 2>&1; then
|
| 6 |
echo "User with ID $USER_ID already exists."
|
| 7 |
else
|
| 8 |
+
# Print a message about directory creation being skipped
|
| 9 |
+
echo "Skipping directory creation under /app. User will be created if needed."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
fi
|
| 11 |
|
| 12 |
# Run the CMD or any other command you want to execute
|