Fix the preplogsdir script to work after a restart of the container

This commit is contained in:
Joseph Schorr 2014-11-29 14:33:55 -05:00
parent 9aa62bd92b
commit 279e4b5069

View file

@ -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