#!/bin/bash

mkdir -p /var/local/src
cd /var/local/src
apt source nginx
apt build-dep nginx -y
git clone --recursive https://github.com/google/ngx_brotli.git
cd /usr/local/src/nginx-*/
dpkg-buildpackage -b -uc -us
dpkg -i /usr/local/src/*.deb
systemctl restart nginx
