server-setup/website_git_post_receive_hook.sh

6 lines
120 B
Bash

#!/bin/bash
set -e
cd /var/www/html
env -i PATH="$PATH" git fetch
env -i PATH="$PATH" git checkout -q --detach rendered