Skip to content

Commit 8fe2084

Browse files
add container specific symlink if possible
1 parent f620cb6 commit 8fe2084

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/entrypoint.sh

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

4-
if [ -S /shareddev/log ];then
4+
if [ -S /shareddev/$(hostname)/log ];then
5+
ln -s /shareddev/$(hostname)/log /dev/log
6+
logger -s "Created container specific symlink to syslog container"
7+
elif [ -S /shareddev/log ];then
58
ln -s /shareddev/log /dev/log
69
logger -s "Created symlink from syslog container"
710
fi

0 commit comments

Comments
 (0)