The file_extras plugin now allows for setting special permissions and ownership on individual files. For example:
json
{"file_extras": {
"files": [
{
"src": "somedir/project_init_script",
"dest": "etc/init.d/project",
},
{
"src": "somedir/with/perms",
"dest": "etc/with/perms",
"attr": {
"permissions": "0644",
"user": "testuser",
"group": "testgroup"
}
},
By default, all extra files keep their permissions and are owned to the user and group configured in the file_permissions settings.
Note: This is identical to 2.1.0 except that it includes a change to the setup.py version. I forgot to do this in the 2.1.0 tag.