SkynetLabs / ansible-playbooks

SkynetLabs Ansible Playbooks
6 stars 5 forks source link

fix cp permissions #390

Closed kwypchlo closed 2 years ago

kwypchlo commented 2 years ago

there is an error when using logrotate configs that are not owned by root

error: Ignoring skynet-webportal-nginx because the file owner is wrong (should be root or user with uid 0). error: Ignoring skynet-webportal-skyd because the file owner is wrong (should be root or user with uid 0).

replace -a (preserve permissions and ownership) with -r (recursive copy, copied files is owned by user that copies it, here it is root)