I have an issue with the maven.jar that we package and let the TeamCity server update all the agents where the permissions for "mvn" is not preserved. I know jar files don't preserve permissions but even when I make it into a maven.zip instead they aren't preserved. What are my options here? Can I update the agent.sh to do a chmod 755 plugins/maven/bin/mvn? Is there a way to have these permissions preserved somehow? If I wanted to update the agent.sh that gets pushed to all the agent boxes when TeamCity server wants to update it where is the agent.sh that gets pushed to all the agents? When you update a plugin does it do "agent.sh stop" and "agent.sh start"? Any help would be great.