if [ $EUID -eq 0 ]; then
  # User is Root
  echo "Pulling from origin"
  git pull origin
  if [ -z $1 ]; then
    path="/var/www/html"
  else
    path=$1
  fi
  echo "Deleting content of" $path
  rm -rf $path/*
  echo "Copying www to " $path
  cp -R www/* $path/
  echo "Restarting Apache"
  service apache2 restart
else
  echo "User must be root to deploy"
  exit 1
fi

Add a script for automatic deploying
Add a script for automatic deploying
