server-setup/website_git_post_receive_hook.sh

6 lines
120 B
Bash
Raw Normal View History

2024-07-05 05:03:06 +00:00
#!/bin/bash
set -e
cd /var/www/html
env -i PATH="$PATH" git fetch
env -i PATH="$PATH" git checkout -q --detach rendered