Skip to content

Commit 06b9d46

Browse files
use LOGNAME
1 parent 8fe2084 commit 06b9d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/local/bin/dumb-init /bin/bash
22
set -e
33

4-
if [ -S /shareddev/$(hostname)/log ];then
5-
ln -s /shareddev/$(hostname)/log /dev/log
4+
if [ -z ${LOGNAME} -a -S /shareddev/${LOGNAME}/log ];then
5+
ln -s /shareddev/${LOGNAME}/log /dev/log
66
logger -s "Created container specific symlink to syslog container"
77
elif [ -S /shareddev/log ];then
88
ln -s /shareddev/log /dev/log

0 commit comments

Comments
 (0)