Fix temp file rights on shared storage
Fix temp file rights on shared storage

It is apparently necessary to set the rights of the file both
before and after writing it. Depending if you write the file on a
shared storage or not.

robocoder/cache,doctrine/cache,doktorsitesi/cache,robocoder/cache,doktorsitesi/cache