Fix bug in the creation of the logs dir.

Use the root user from the container to create the dir and then
change the group and owner so www-data can write.
2 jobs for 3.x in 1 minute and 16 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed health-check #3711
docker-generic

00:00:49

 
  Quality
passed sonarqube #3712
docker-generic

00:00:26