Yes, there is. When you build the application you you have to set the temp file directories for the platform in <libresource_root>/Distribution/ls-config.properties. The properties
kernel.indexation.data.dir and
libresource.distributedFilesystem name directories which have to be readable/writeable by both jonas and postgres.
Create a libresource group and add postgres into it.
Create an account for jonas as a member of libresource.
Create the directories during the installation, change the owner group as libresource and set the permission for the group.