Skip to content

Commit 4b88d13

Browse files
committed
Fix /tmp permission check in entrypoint script
1 parent e5cf605 commit 4b88d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ case "${uid}:${gid}" in
1616
(0:0|"$NUODB_DEFAULT_UID":0) : ;;
1717
(*:0|"$NUODB_DEFAULT_UID":*)
1818
# Check if /tmp is writable
19-
if test -w /tmp/passwd; then
19+
if touch /tmp/passwd 2>/dev/null; then
2020
# Replace uid:gid for nuodb user
2121
sed "s/^nuodb:x:${NUODB_DEFAULT_UID}:0:/nuodb:x:${uid}:${gid}:/" /etc/passwd.nuodb > /tmp/passwd
2222

0 commit comments

Comments
 (0)