Set file permissions before creating runner rpm/deb packages
Without this, the post-install and pre-remove scripts (and some other scripts) end up with permission 777, which is more permissive than we'd like.
Also similarly set the permission of all entrypoint
files to 755
Closes https://gitlab.com/gitlab-org/gitlab-runner/-/issues/37792+
Edited by Axel von Bertoldi