#!/usr/bin/bash

if [ "$(id -u)" != "0" ]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi


sudo -u jean git pull origin master
rsync -a --delete . /var/www/html
chown -R www-data.www-data /var/www/html
