Fix the preplogsdir script to work after a restart of the container
This commit is contained in:
parent
9aa62bd92b
commit
279e4b5069
1 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
|||
echo 'Linking config files to logs directory'
|
||||
for svc in `ls /etc/service/`
|
||||
do
|
||||
mkdir -p /var/log/$svc
|
||||
ln -s /svlogd_config /var/log/$svc/config
|
||||
if [ ! -d /var/log/$svc ]; then
|
||||
mkdir -p /var/log/$svc
|
||||
ln -s /svlogd_config /var/log/$svc/config
|
||||
fi
|
||||
done
|
||||
|
|
Reference in a new issue