diff --git a/images/02-logrotate/usr/bin/entrypoint.sh b/images/02-logrotate/usr/bin/entrypoint.sh index 3742e270..081779a0 100755 --- a/images/02-logrotate/usr/bin/entrypoint.sh +++ b/images/02-logrotate/usr/bin/entrypoint.sh @@ -1,5 +1,10 @@ #!/bin/bash -cp /usr/share/logrotate/logrotate.d/* /etc/logrotate.d +for f in /usr/share/logrotate/logrotate.d/*; do + target=/etc/logrotate.d/$(basename ${f}) + if [ ! -e ${target} ]; then + cp ${f} ${target} + fi +done exec /usr/bin/ros entrypoint "$@"