#!/bin/bash # update bare repos echo "Updating bare repos" su -c "git --git-dir=git-repositories/DOMAIN.git fetch origin prod:prod" USER # deploy prod cd www/DOMAIN/ su -c "./deploy.sh" USER