mirror of
https://github.com/rancher/os.git
synced 2025-07-31 22:47:16 +00:00
Only make an initial copy for the logrotate config files
This commit is contained in:
parent
814f63e727
commit
e4e208d3b7
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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 "$@"
|
exec /usr/bin/ros entrypoint "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user