1
0
mirror of https://github.com/rancher/os.git synced 2025-07-14 07:04:03 +00:00
os/images/02-logrotate/usr/bin/entrypoint.sh

11 lines
211 B
Bash
Executable File

#!/bin/bash
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 "$@"