1
0
mirror of https://github.com/rancher/os.git synced 2025-07-30 22:24:33 +00:00

Only make an initial copy for the logrotate config files

This commit is contained in:
niusmallnan 2019-04-26 21:11:34 +08:00 committed by niusmallnan
parent 814f63e727
commit e4e208d3b7

View File

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