diff --git a/Brotli/Install-build-dependencies.sh b/Brotli/Install-build-dependencies.sh new file mode 100644 index 0000000..0f48158 --- /dev/null +++ b/Brotli/Install-build-dependencies.sh @@ -0,0 +1,27 @@ +#!/bin/bash +###============================================================ +## Ubuntu 18.04 Brotli updater Dependencies installer +###============================================================ +# RUN THIS ONCE +##============================================================= + +#install Dependencies +apt install -y curl gnupg dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip git + +#add repo +curl -L https://nginx.org/keys/nginx_signing.key | apt-key add - +wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/apt/nginx.list -O /etc/apt/sources.list.d/nginx.list +apt update + +#Checking for local version log +if [ ! -f /var/log/nginxVersion.txt ]; then + echo 0 > /var/log/nginxVersion.txt +fi + +#downloading Brotli updater scrips +wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/Brotli/update-brotli.sh-O /opt/update-brotli.sh +echo 3 * * * root /bin/bash /opt/update-brotli.sh + +# setting webserver folder for package downloads +mkdir -p /var/www/brotli-builds +chown www-data:www-data /var/www/brotli-builds \ No newline at end of file