only chmod logfile if necessary
only chmod logfile if necessary

otherwise e.g. on SELinux this will log an error, so we better avoid it if not necessary.
andreas-p/nextcloud-server,andreas-p/nextcloud-server,michaelletzgus/nextcloud-server,andreas-p/nextcloud-server,endsguy/server,nextcloud/server,pixelipo/server,nextcloud/server,endsguy/server,nextcloud/server,michaelletzgus/nextcloud-server,andreas-p/nextcloud-server,pixelipo/server,nextcloud/server,pixelipo/server,michaelletzgus/nextcloud-server,michaelletzgus/nextcloud-server,andreas-p/nextcloud-server,endsguy/server,endsguy/server,endsguy/server,pixelipo/server,pixelipo/server